]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Use btrfs_mark_bg_unused to replace open code
authorQu Wenruo <wqu@suse.com>
Tue, 22 May 2018 08:43:47 +0000 (16:43 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:49 +0000 (13:12 +0200)
commite781d91d914c182e617186247f1ad7d8399c0b5b
tree6dace34f520b588feec799e9e7ba8767e3168cd8
parentb0a180b74eb7014d5f854f4ec460b03f42b5b182
btrfs: Use btrfs_mark_bg_unused to replace open code

Introduce a small helper, btrfs_mark_bg_unused(), to acquire locks and
add a block group to unused_bgs list.

No functional modification, and only 3 callers are involved.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/scrub.c