summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/xattr.h
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2022-01-20 17:11:52 +0000
committerDavid Sterba <dsterba@suse.com>2022-01-24 18:10:56 +0100
commit3c9d31c715948aaff0ee6d322a91a2dec07770bf (patch)
treef912541aa7bc8ec0a76482f3901e21c5e6a6b05b /fs/f2fs/xattr.h
parent0cb5950f3f3b51a4e8657d106f897f2b913e0586 (diff)
downloadlinux-stable-3c9d31c715948aaff0ee6d322a91a2dec07770bf.tar.gz
linux-stable-3c9d31c715948aaff0ee6d322a91a2dec07770bf.tar.bz2
linux-stable-3c9d31c715948aaff0ee6d322a91a2dec07770bf.zip
btrfs: add back missing dirty page rate limiting to defrag
A defrag operation can dirty a lot of pages, specially if operating on the entire file or a large file range. Any task dirtying pages should periodically call balance_dirty_pages_ratelimited(), as stated in that function's comments, otherwise they can leave too many dirty pages in the system. This is what we did before the refactoring in 5.16, and it should have remained, just like in the buffered write path and relocation. So restore that behaviour. Fixes: 7b508037d4cac3 ("btrfs: defrag: use defrag_one_cluster() to implement btrfs_defrag_file()") CC: stable@vger.kernel.org # 5.16 Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/f2fs/xattr.h')
0 files changed, 0 insertions, 0 deletions