btrfs: call btrfs_create_pending_block_groups unconditionally
authorJosef Bacik <josef@toxicpanda.com>
Wed, 21 Nov 2018 19:05:42 +0000 (14:05 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:25 +0000 (14:13 +0100)
commit119e80df7d49e3794ca6d18afecd0cce948cad94
treeca870b175ea2b1596206091af074dd19630ab8d2
parentfa781cea3d6a2bd5f6c044cb06c608d7eeb6d787
btrfs: call btrfs_create_pending_block_groups unconditionally

The first thing we do is loop through the list, this

if (!list_empty())
btrfs_create_pending_block_groups();

thing is just wasted space.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c
fs/btrfs/transaction.c