mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 05:32:00 +00:00
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
|
||||
* writeout).
|
||||
*/
|
||||
*done_index = folio->index +
|
||||
folio_nr_pages(folio);
|
||||
*done_index = folio_next_index(folio);
|
||||
ret = 1;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user