]> www.infradead.org Git - users/jedix/linux-maple.git/commit
f2fs: drop usage of folio_index
authorKairui Song <kasong@tencent.com>
Wed, 30 Apr 2025 18:10:49 +0000 (02:10 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 6 May 2025 15:46:55 +0000 (15:46 +0000)
commit0427e811c9bc85e660457487f1da61b1aaf63477
tree79b13caf7acebcaf652a2ead1fb05966b97a59e7
parent0244c77fedc68eda261b4fec24b0476455e3b654
f2fs: drop usage of folio_index

folio_index is only needed for mixed usage of page cache and swap
cache, for pure page cache usage, the caller can just use
folio->index instead.

It can't be a swap cache folio here.  Swap mapping may only call into fs
through `swap_rw` but f2fs does not use that method for swap.

Signed-off-by: Kairui Song <kasong@tencent.com>
Cc: Jaegeuk Kim <jaegeuk@kernel.org> (maintainer:F2FS FILE SYSTEM)
Cc: Chao Yu <chao@kernel.org> (maintainer:F2FS FILE SYSTEM)
Cc: linux-f2fs-devel@lists.sourceforge.net (open list:F2FS FILE SYSTEM)
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/inline.c
fs/f2fs/super.c