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>
This commit is contained in:
parent
02aee814d3
commit
5f02d16868
|
@ -272,8 +272,7 @@ continue_unlock:
|
||||||
* 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue