mm: increase usage of folio_next_index() helper
authorSidhartha Kumar <sidhartha.kumar@oracle.com>
Tue, 27 Jun 2023 17:43:49 +0000 (10:43 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 18 Aug 2023 17:12:00 +0000 (10:12 -0700)
commit87b11f862254396a93636f0998377ac3f6648f5f
tree8e866e480d9533017b93efbb1ec46fc9225f503a
parent3a29280afb25263c76212a8c140c29f280049ffb
mm: 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().

Link: https://lkml.kernel.org/r/20230627174349.491803-1-sidhartha.kumar@oracle.com
Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ext4/inode.c
mm/filemap.c
mm/memory.c
mm/shmem.c
mm/truncate.c