mm: remove the for_reclaim field from struct writeback_control
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Jun 2025 05:49:42 +0000 (07:49 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:41:58 +0000 (22:41 -0700)
commita8fb49c6abbbe5c71e1a8a888ef2c4b3e341d169
tree5094f549067fe2eb777f4a4a3d2192dedd322c9b
parent624043dbd5be03cc5a2b9175c3934e6fb0ef7c70
mm: remove the for_reclaim field from struct writeback_control

This field is now only set to one in the i915 gem code that only calls
writeback_iter on it, which ignores the flag.  All other checks are thuse
dead code and the field can be removed.

Link: https://lkml.kernel.org/r/20250610054959.2057526-7-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Chengming Zhou <chengming.zhou@linux.dev>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Nhat Pham <nphamcs@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/gpu/drm/i915/gem/i915_gem_shmem.c
fs/fuse/file.c
fs/nfs/write.c
include/linux/writeback.h
include/trace/events/btrfs.h
include/trace/events/writeback.h