diff options
author | Minjie Du <duminjie@vivo.com> | 2023-07-17 15:19:37 +0800 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2023-09-05 15:58:15 +0200 |
commit | 5f02d16868b9d738d70656d074518cac760d39ab (patch) | |
tree | d3f15fe98c402954efec1b29c32bb203d631d84b | |
parent | Merge tag 'gfs2-v6.4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff) | |
download | linux-5f02d16868b9d738d70656d074518cac760d39ab.tar.gz linux-5f02d16868b9d738d70656d074518cac760d39ab.tar.bz2 linux-5f02d16868b9d738d70656d074518cac760d39ab.zip |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index ae49256b7c8c..5f02542370c4 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; } |