Commit 2252b62a authored by Younger Liu's avatar Younger Liu Committed by Linus Torvalds

logfs: check for the return value after calling find_or_create_page()

In get_mapping_page(), after calling find_or_create_page(), the return
value should be checked.

 This patch has been provided: but not been
applied now.
Signed-off-by: default avatarYounger Liu <>
Cc: Younger Liu <>
Cc: Vyacheslav Dubeyko <>
Reviewed-by: default avatarPrasad Joshi <>
Cc: Jörn Engel <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent a3b25d9b
......@@ -62,7 +62,8 @@ static struct page *get_mapping_page(struct super_block *sb, pgoff_t index,
page = read_cache_page(mapping, index, filler, sb);
else {
page = find_or_create_page(mapping, index, GFP_NOFS);
if (page)
return page;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment