aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/block-group.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-10-23 18:48:15 +0200
committerDavid Sterba <dsterba@suse.com>2019-11-18 17:51:45 +0100
commit3d976388daa9ed77c9d2ded914ad07385b37d97e (patch)
tree42a5a30a670c4aaa806baaa30d31279b9ab58e19 /fs/btrfs/block-group.h
parentbtrfs: move block_group_item::flags to block group (diff)
downloadlinux-dev-3d976388daa9ed77c9d2ded914ad07385b37d97e.tar.xz
linux-dev-3d976388daa9ed77c9d2ded914ad07385b37d97e.zip
btrfs: remove embedded block_group_cache::item
The members ::used and ::flags are now in the block group cache structure, the last one is chunk_objectid, but that's set to a fixed value and otherwise unused. The item is constructed from a local variable before write, so we can remove the embedded one from block group. Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/block-group.h')
-rw-r--r--fs/btrfs/block-group.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/block-group.h b/fs/btrfs/block-group.h
index 8fa4a70228ee..d78fce7cd3a4 100644
--- a/fs/btrfs/block-group.h
+++ b/fs/btrfs/block-group.h
@@ -44,7 +44,6 @@ struct btrfs_caching_control {
struct btrfs_block_group_cache {
struct btrfs_key key;
- struct btrfs_block_group_item item;
struct btrfs_fs_info *fs_info;
struct inode *inode;
spinlock_t lock;