summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChi Zhiling <chizhiling@kylinos.cn>2026-06-20 14:24:46 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-07-28 21:11:45 -0700
commit32cd1afeca96076bf2408c61f552d98e3de94884 (patch)
tree1b6878af2e71121fa2ad57b264d7bbfe8d268ff5 /include/linux
parente1c345582c979ed44f881dec0b3137d862097c6b (diff)
mm/filemap: reduce unnecessary xarray lookups in filemap_get_folios_contig()
Apply the same optimization used in filemap_get_read_batch() by moving the boundary check from the loop condition to before xas_next(), avoiding an unnecessary xarray lookup and reducing branches in the fast path. Link: https://lore.kernel.org/20260620062446.351475-3-chizhiling@163.com Signed-off-by: Chi Zhiling <chizhiling@kylinos.cn> Reviewed-by: Jan Kara <jack@suse.cz> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions