aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/truncate.c
diff options
context:
space:
mode:
authorMinjie Du <duminjie@vivo.com>2023-11-07 10:46:34 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-12-10 16:51:35 -0800
commit8ff252663d30f5c0bcb0bb336c1a5ed7c37d9730 (patch)
tree1983f06a0157fa27708b00731b3e00cd415faa47 /mm/truncate.c
parentdax/kmem: allow kmem to add memory with memmap_on_memory (diff)
downloadwireguard-linux-8ff252663d30f5c0bcb0bb336c1a5ed7c37d9730.tar.xz
wireguard-linux-8ff252663d30f5c0bcb0bb336c1a5ed7c37d9730.zip
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_get_folios_contig(). Link: https://lkml.kernel.org/r/20231107024635.4512-1-duminjie@vivo.com Signed-off-by: Minjie Du <duminjie@vivo.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/truncate.c')
0 files changed, 0 insertions, 0 deletions