mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[PATCH] mm: make filemap_nopage use NOPAGE_SIGBUS
Don't open-code NOPAGE_SIGBUS. Signed-off-by: Adam Litke <agl@us.ibm.com> Acked-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
4ce072f1fa
commit
79f5acf5d7
1 changed files with 3 additions and 3 deletions
|
@ -1471,7 +1471,7 @@ outside_data_content:
|
|||
* accessible..
|
||||
*/
|
||||
if (area->vm_mm == current->mm)
|
||||
return NULL;
|
||||
return NOPAGE_SIGBUS;
|
||||
/* Fall through to the non-read-ahead case */
|
||||
no_cached_page:
|
||||
/*
|
||||
|
@ -1496,7 +1496,7 @@ no_cached_page:
|
|||
*/
|
||||
if (error == -ENOMEM)
|
||||
return NOPAGE_OOM;
|
||||
return NULL;
|
||||
return NOPAGE_SIGBUS;
|
||||
|
||||
page_not_uptodate:
|
||||
if (!did_readaround) {
|
||||
|
@ -1565,7 +1565,7 @@ page_not_uptodate:
|
|||
*/
|
||||
shrink_readahead_size_eio(file, ra);
|
||||
page_cache_release(page);
|
||||
return NULL;
|
||||
return NOPAGE_SIGBUS;
|
||||
}
|
||||
EXPORT_SYMBOL(filemap_nopage);
|
||||
|
||||
|
|
Loading…
Reference in a new issue