Skip to content

Commit 3987653

Browse files
Jaegeuk KimHashcode
authored andcommitted
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 <jaegeuk.kim@samsung.com>
1 parent fc672f9 commit 3987653

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)