]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/filemap: use folio_next_index() for start
authortanze <tanze@kylinos.cn>
Mon, 1 Jun 2026 11:04:23 +0000 (19:04 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 9 Jun 2026 01:21:31 +0000 (18:21 -0700)
commita51cbdf02aec619f90db7e9f06e295adb8009d4d
tree3b93e62ab3efd8cec92018bcf8f7d4acf4cb7d3f
parentc55dd3b46c1208d6d2ea737a8aefef4aa4c70cb8
mm/filemap: use folio_next_index() for start

Use folio_next_index() instead of open-coding folio->index +
folio_nr_pages(folio) when updating @start in filemap_get_folios_contig(),
filemap_get_folios_tag(), and filemap_get_folios_dirty().

Link: https://lore.kernel.org/20260601110425.44784-1-tanze@kylinos.cn
Signed-off-by: tanze <tanze@kylinos.cn>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/filemap.c