aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinjie Du <duminjie@vivo.com>2023-07-17 15:19:37 +0800
committerAndreas Gruenbacher <agruenba@redhat.com>2023-09-05 15:58:15 +0200
commit5f02d16868b9d738d70656d074518cac760d39ab (patch)
treed3f15fe98c402954efec1b29c32bb203d631d84b
parent02aee814d37c563e24b73bcd0f9cb608fbd403d4 (diff)
downloadlinux-5f02d16868b9d738d70656d074518cac760d39ab.tar.gz
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 <duminjie@vivo.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
-rw-r--r--fs/gfs2/aops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c
index ae49256b7c8c62..5f02542370c4b3 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;
}