]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd677a4d785e51112e25becbb44f7ce4dfa56d8db
treeca870b175ea2b1596206091af074dd19630ab8d2
parentca3cadbbe49c9faf009d7f71f161900483b08535
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