Skip to content

Commit

Permalink
f2fs: remove the use of page_cache_release
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Jaegeuk Kim authored and Hashcode committed Jul 15, 2016
1 parent fc672f9 commit 3987653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/f2fs/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static void ra_nat_pages(struct f2fs_sb_info *sbi, int nid)
f2fs_put_page(page, 1);
continue;
}
page_cache_release(page);
f2fs_put_page(page, 0);
}
}

Expand Down Expand Up @@ -877,7 +877,7 @@ void ra_node_page(struct f2fs_sb_info *sbi, nid_t nid)
unlock_page(apage);

release_out:
page_cache_release(apage);
f2fs_put_page(apage, 0);
return;
}

Expand Down

0 comments on commit 3987653

Please sign in to comment.