mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
f2fs: 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> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
2bd4df8fcb
commit
a842a90926
@ -3232,8 +3232,7 @@ result:
|
||||
}
|
||||
goto next;
|
||||
}
|
||||
done_index = folio->index +
|
||||
folio_nr_pages(folio);
|
||||
done_index = folio_next_index(folio);
|
||||
done = 1;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user