OSDN Git Service

btrfs: remove embedded block_group_cache::item
authorDavid Sterba <dsterba@suse.com>
Wed, 23 Oct 2019 16:48:15 +0000 (18:48 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 16:51:45 +0000 (17:51 +0100)
commit3d976388daa9ed77c9d2ded914ad07385b37d97e
tree42a5a30a670c4aaa806baaa30d31279b9ab58e19
parentf93c63e54730428f474267600fa3a901881d2829
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>
fs/btrfs/block-group.c
fs/btrfs/block-group.h