diff options
author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2021-04-19 16:41:01 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-04-20 20:30:18 +0200 |
commit | f33720657d29d6b7282dd2e5e8634e0a39ad372e (patch) | |
tree | 428b7502bf99ec6cbe7b6d89210755cd45beeaf7 /fs/btrfs/ctree.h | |
parent | 01e86008aaa534867a7fb0fcbc116ab085e2b2c6 (diff) | |
download | lwn-f33720657d29d6b7282dd2e5e8634e0a39ad372e.tar.gz lwn-f33720657d29d6b7282dd2e5e8634e0a39ad372e.zip |
btrfs: rename delete_unused_bgs_mutex to reclaim_bgs_lock
As a preparation for extending the block group deletion use case, rename
the unused_bgs_mutex to reclaim_bgs_lock.
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 45899abb53db..1f0005efdada 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -963,7 +963,8 @@ struct btrfs_fs_info { spinlock_t unused_bgs_lock; struct list_head unused_bgs; struct mutex unused_bg_unpin_mutex; - struct mutex delete_unused_bgs_mutex; + /* Protect block groups that are going to be deleted */ + struct mutex reclaim_bgs_lock; /* Cached block sizes */ u32 nodesize; |