]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm/page-writeback: drop usage of folio_index
authorKairui Song <kasong@tencent.com>
Mon, 25 Aug 2025 16:37:21 +0000 (00:37 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 13 Sep 2025 23:55:17 +0000 (16:55 -0700)
commit46afff459925297d9d47c043eb8541fabac9bb0a
tree4d6bd2e7e67e4c5dd3b3667d27f4cf891884ddb1
parent79dfed097680084f3d4716fa2c5bc945233bd2c0
mm/page-writeback: drop usage of folio_index

folio_index is only needed for mixed usage of page cache and swap cache.
The remaining three caller in page-writeback are for page cache tag
marking.  Swap cache space doesn't use tag (explicitly sets
mapping_set_no_writeback_tags), so use folio->index here directly.

Link: https://lkml.kernel.org/r/20250825163721.17734-1-ryncsn@gmail.com
Signed-off-by: Kairui Song <kasong@tencent.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page-writeback.c