From: Minjie Du Date: Mon, 17 Jul 2023 07:11:09 +0000 (+0800) Subject: f2fs: increase usage of folio_next_index() helper X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a842a90926b6b96ef38d6a190c27a4a60531a633;p=linux.git 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(). Signed-off-by: Minjie Du Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index ecebc3a139be2..5d96977173532 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -3232,8 +3232,7 @@ result: } goto next; } - done_index = folio->index + - folio_nr_pages(folio); + done_index = folio_next_index(folio); done = 1; break; }