mm/filemap: increase usage of folio_next_index() helper
authorMinjie Du <duminjie@vivo.com>
Thu, 21 Sep 2023 08:15:35 +0000 (16:15 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 6 Oct 2023 21:44:11 +0000 (14:44 -0700)
commitd98388cef5315d0235fdcad26600102f54966927
treec0e96caec89ca6e2876cf1689274b14b243d8227
parent2dc539ac4d2f556105ea7e2a37d23379a79a47eb
mm/filemap: 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() in filemap_map_pages().

Link: https://lkml.kernel.org/r/20230921081535.3398-1-duminjie@vivo.com
Signed-off-by: Minjie Du <duminjie@vivo.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/filemap.c