diff options
author | Minjie Du <duminjie@vivo.com> | 2023-09-21 11:15:35 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-10-07 00:44:11 +0300 |
commit | d98388cef5315d0235fdcad26600102f54966927 (patch) | |
tree | c0e96caec89ca6e2876cf1689274b14b243d8227 /mm/memory.c | |
parent | 2dc539ac4d2f556105ea7e2a37d23379a79a47eb (diff) | |
download | linux-d98388cef5315d0235fdcad26600102f54966927.tar.xz |
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>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions