Commit 5f02d168 authored by Minjie Du's avatar Minjie Du Committed by Andreas Gruenbacher

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: default avatarMinjie Du <duminjie@vivo.com>
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 02aee814
...@@ -272,8 +272,7 @@ static int gfs2_write_jdata_batch(struct address_space *mapping, ...@@ -272,8 +272,7 @@ static int gfs2_write_jdata_batch(struct address_space *mapping,
* not be suitable for data integrity * not be suitable for data integrity
* writeout). * writeout).
*/ */
*done_index = folio->index + *done_index = folio_next_index(folio);
folio_nr_pages(folio);
ret = 1; ret = 1;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment