]> git.ipfire.org Git - thirdparty/linux.git/commit
mm: stop passing a writeback_control structure to shmem_writeout
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Jun 2025 05:49:38 +0000 (07:49 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:41:57 +0000 (22:41 -0700)
commit44b1b073eb36143ec65a918c0fbaa582f3ec2aa1
tree3ff42ebd5c50d49e8db9c4ce14e5431252bdd401
parent86c4a946436e6ab3d9b0d02afd5d33ebf63528c5
mm: stop passing a writeback_control structure to shmem_writeout

shmem_writeout only needs the swap_iocb cookie and the split folio list.
Pass those explicitly and remove the now unused list member from struct
writeback_control.

Link: https://lkml.kernel.org/r/20250610054959.2057526-3-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
drivers/gpu/drm/ttm/ttm_backup.c
include/linux/shmem_fs.h
include/linux/writeback.h
mm/shmem.c
mm/vmscan.c