f2fs: increase usage of folio_next_index() helper
PATCH 1/1 f2fs: increase usage of folio_next_index() helper
Simplify code pattern of 'folio->index + folio_nr_pages(folio)' by using the existing helper folio_next_index().
--- fs/f2fs/data.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/f2fs/data.c +1 -2
@@ -3236,8 +3236,7 @@ static int f2fs_write_cache_pages(struct address_space *mapping, } goto next; } - done_index = folio->index + -folio_nr_pages (folio); + done_index =folio_next_index (folio); done =1 ;break ; }
Signature · 1 line
2.39.0
Quoted 4 lines · Minjie Du
Simplify code pattern of '
folio->index+folio_nr_pages(folio)' by using the existing helperfolio_next_index().Signed-off-by Minjie Du <[email protected]>
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:
Hello:
This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:
Quoted 7 lines · On Mon, 17 Jul 2023 15:11:09 +0800 you wrote:
Simplify code pattern of '
folio->index+folio_nr_pages(folio)' by using the existing helperfolio_next_index().Signed-off-by Minjie Du <[email protected]>--- fs/f2fs/data.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Here is the summary with links:
- [f2fs-dev,v1] f2fs: increase usage of folio_next_index() helper
https://git.kernel.org/jaegeuk/f2fs/c/a842a90926b6
You are awesome, thank you!
Signature · 10 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel