aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/node.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index eced8d7bf502..065cd99cc723 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -958,7 +958,7 @@ repeat:
958 goto got_it; 958 goto got_it;
959 959
960 lock_page(page); 960 lock_page(page);
961 if (unlikely(!PageUptodate(page))) { 961 if (unlikely(!PageUptodate(page) || nid != nid_of_node(page))) {
962 f2fs_put_page(page, 1); 962 f2fs_put_page(page, 1);
963 return ERR_PTR(-EIO); 963 return ERR_PTR(-EIO);
964 } 964 }
@@ -967,7 +967,6 @@ repeat:
967 goto repeat; 967 goto repeat;
968 } 968 }
969got_it: 969got_it:
970 f2fs_bug_on(nid != nid_of_node(page));
971 mark_page_accessed(page); 970 mark_page_accessed(page);
972 return page; 971 return page;
973} 972}