OSDN Git Service

Btrfs: remove redundant btrfs_balance_delayed_items
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 20 Oct 2017 23:53:41 +0000 (17:53 -0600)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:10 +0000 (16:08 +0100)
commit1805f2ca3f27f25c8e637edc4b40bab237f9d07c
treea86b75da6d792beeba9ab64c08259c40e18c8a6b
parent0c5b9b5d9adbad4b60491f9ba0d2af38904bb4b9
Btrfs: remove redundant btrfs_balance_delayed_items

In functions like btrfs_create(), we run both
btrfs_balance_delayed_items() and btrfs_btree_balance_dirty() after
the operation, but btrfs_btree_balance_dirty() is surely going to run
btrfs_balance_delayed_items().

This keeps only btrfs_btree_balance_dirty().

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c