From: Minjie Du Date: Mon, 17 Jul 2023 07:19:37 +0000 (+0800) Subject: gfs2: increase usage of folio_next_index() helper X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5f02d16868b9d738d70656d074518cac760d39ab;p=users%2Fwilly%2Fpagecache.git gfs2: 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 Signed-off-by: Andreas Gruenbacher --- diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index ae49256b7c8c6..5f02542370c4b 100644 --- a/fs/gfs2/aops.c +++ b/fs/gfs2/aops.c @@ -272,8 +272,7 @@ continue_unlock: * not be suitable for data integrity * writeout). */ - *done_index = folio->index + - folio_nr_pages(folio); + *done_index = folio_next_index(folio); ret = 1; break; }