]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove extent writepage address space operation
authorChristoph Hellwig <hch@lst.de>
Tue, 21 Jun 2022 07:49:44 +0000 (09:49 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:37 +0000 (17:45 +0200)
commitd90443a648da30aaf7ac1410a0ee689f48bad857
tree6108a181b3629aa782d021f3b517e525207d85da
parent58770d1ff709c7025999b3dc3b5ef9a08b5c149f
btrfs: remove extent writepage address space operation

Same as in commit 4a09a6b37802 ("xfs: drop ->writepage completely"): we
can remove the callback as it's only used in one place - single page
writeback from memory reclaim and is not called for cgroup writeback at
all.

We only allow such writeback from kswapd, not from direct memory
reclaim, and so it is rarely used. When it comes from kswapd, it is
effectively random dirty page shoot-down, which is horrible for IO
patterns. We can rely on background writeback to clean all dirty pages
in an efficient way and not let it be interrupted by kswapd.

Suggested-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c
fs/btrfs/subpage.c