]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm:page-writeback: use folio_next_index() helper in writeback_iter()
authorYuesong Li <liyuesong@vivo.com>
Wed, 21 Aug 2024 06:31:12 +0000 (14:31 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Sep 2024 04:15:46 +0000 (21:15 -0700)
commit0692fad55d3c1ed3766a1e8627af15b951097894
tree19438246cf3192a33528d6c2cb207f7a1fa03a2a
parentc41a701d18efe6b8aa402efab16edbaba50c9548
mm:page-writeback: use folio_next_index() helper in writeback_iter()

Simplify code pattern of 'folio->index + folio_nr_pages(folio)' by using
the existing helper folio_next_index().

Link: https://lkml.kernel.org/r/20240821063112.4053157-1-liyuesong@vivo.com
Signed-off-by: Yuesong Li <liyuesong@vivo.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page-writeback.c