btrfs: don't balance btree inode pages from buffered write path
authorNikolay Borisov <nborisov@suse.com>
Thu, 28 May 2020 08:05:13 +0000 (11:05 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 27 Jul 2020 10:55:20 +0000 (12:55 +0200)
commit6a3c7f5c87854e948c3c234e5f5e745c7c553722
treee4950424bd4c95cef5d9c57eab841711daa9d155
parent92ed301919932f777713b9172e525674157e983d
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 <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c