Skip to content

Commit 369a708

Browse files
author
Jaegeuk Kim
committed
f2fs: remove the use of page_cache_release
Let's remove the use of page_cache_release() in f2fs, and instead, use f2fs_put_page(page, 0) which is exactly same but for code readability. Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 324ddc7 commit 369a708

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/f2fs/node.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static void ra_nat_pages(struct f2fs_sb_info *sbi, int nid)
104104
f2fs_put_page(page, 1);
105105
continue;
106106
}
107-
page_cache_release(page);
107+
f2fs_put_page(page, 0);
108108
}
109109
}
110110

@@ -877,7 +877,7 @@ void ra_node_page(struct f2fs_sb_info *sbi, nid_t nid)
877877
unlock_page(apage);
878878

879879
release_out:
880-
page_cache_release(apage);
880+
f2fs_put_page(apage, 0);
881881
return;
882882
}
883883

0 commit comments

Comments
 (0)