]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nilfs2: remove wbc->for_reclaim handling
authorChristoph Hellwig <hch@lst.de>
Fri, 16 May 2025 12:31:13 +0000 (21:31 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 21 May 2025 17:48:23 +0000 (10:48 -0700)
commit84e437640ba43259c81048ded6adb5357a844360
tree5035da3c30a3fad956bb18c5254deb930b25e98e
parent8e02b1b7fcffcde7cc7d7749513ac1b0fbbfcf0a
nilfs2: remove wbc->for_reclaim handling

Since commit 013a07052a1a ("nilfs2: convert metadata aops from writepage
to writepages"), nilfs_mdt_write_folio can't be called from reclaim
context any more.  Remove the code keyed of the wbc->for_reclaim flag,
which is now only set for writing out swap or shmem pages inside the swap
code, but never passed to file systems.

Link: https://lkml.kernel.org/r/20250508054938.15894-7-hch@lst.de
Link: https://lkml.kernel.org/r/20250516123417.6779-1-konishi.ryusuke@gmail.com
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nilfs2/mdt.c
fs/nilfs2/segment.c
fs/nilfs2/segment.h