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,
* not be suitable for data integrity
* writeout).
*/
*done_index = folio->index +
folio_nr_pages(folio);
*done_index = folio_next_index(folio);
ret = 1;
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