提交 79f5acf5 编写于 作者: A Adam Litke 提交者: Linus Torvalds

[PATCH] mm: make filemap_nopage use NOPAGE_SIGBUS

Don't open-code NOPAGE_SIGBUS.
Signed-off-by: NAdam Litke <agl@us.ibm.com>
Acked-by: NHugh Dickins <hugh@veritas.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 4ce072f1
......@@ -1471,7 +1471,7 @@ struct page *filemap_nopage(struct vm_area_struct *area,
* 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 @@ struct page *filemap_nopage(struct vm_area_struct *area,
*/
if (error == -ENOMEM)
return NOPAGE_OOM;
return NULL;
return NOPAGE_SIGBUS;
page_not_uptodate:
if (!did_readaround) {
......@@ -1565,7 +1565,7 @@ struct page *filemap_nopage(struct vm_area_struct *area,
*/
shrink_readahead_size_eio(file, ra);
page_cache_release(page);
return NULL;
return NOPAGE_SIGBUS;
}
EXPORT_SYMBOL(filemap_nopage);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册