aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2020-05-28 11:05:13 +0300
committerDavid Sterba <[email protected]>2020-07-27 12:55:20 +0200
commit6a3c7f5c87854e948c3c234e5f5e745c7c553722 (patch)
treee4950424bd4c95cef5d9c57eab841711daa9d155
parent92ed301919932f777713b9172e525674157e983d (diff)
btrfs: don't balance btree inode pages from buffered write path
The call to btrfs_btree_balance_dirty has been there since the early days of BTRFS, when the btree was directly modified from the write path, hence dirtied btree inode pages. With the implementation of b888db2bd7b6 ("Btrfs: Add delayed allocation to the extent based page tree code") 13 years ago the btree is no longer modified from the write path, hence there is no point in calling this function. Just remove it. Signed-off-by: Nikolay Borisov <[email protected]> Signed-off-by: David Sterba <[email protected]>
-rw-r--r--fs/btrfs/file.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index b0d2c976587e..52422e2b3344 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -1800,8 +1800,6 @@ again:
cond_resched();
balance_dirty_pages_ratelimited(inode->i_mapping);
- if (dirty_pages < (fs_info->nodesize >> PAGE_SHIFT) + 1)
- btrfs_btree_balance_dirty(fs_info);
pos += copied;
num_written += copied;