aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-08-15 01:54:56 -0400
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-08-18 20:42:29 -0400
commite27dae4d663762da2020e93885be2219f0608ec6 (patch)
treeee60baa9daf0636ce7daf8c1562088696145d8f0 /fs/f2fs/node.c
parent479bd73ac425ff117efeea051077b4277baab52e (diff)
f2fs: alloc_page() doesn't return an ERR_PTR
alloc_page() returns a NULL on failure, it never returns an ERR_PTR. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r--fs/f2fs/node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index 1c21344fba30..818ff368de81 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1517,8 +1517,8 @@ int restore_node_summary(struct f2fs_sb_info *sbi,
1517 1517
1518 /* alloc temporal page for read node */ 1518 /* alloc temporal page for read node */
1519 page = alloc_page(GFP_NOFS | __GFP_ZERO); 1519 page = alloc_page(GFP_NOFS | __GFP_ZERO);
1520 if (IS_ERR(page)) 1520 if (!page)
1521 return PTR_ERR(page); 1521 return -ENOMEM;
1522 lock_page(page); 1522 lock_page(page);
1523 1523
1524 /* scan the node segment */ 1524 /* scan the node segment */