btrfs-progs: fix using on-disk structure to store in memory data
authorByongho Lee <bhlee.kernel@gmail.com>
Mon, 4 Jan 2016 01:01:34 +0000 (10:01 +0900)
committerDavid Sterba <dsterba@suse.com>
Tue, 12 Jan 2016 14:01:05 +0000 (15:01 +0100)
commite3bd2d145f3821e5c57d56931e78efca22578a97
tree3d65a2a316465a409cdacf3a84860b8e1657e7a3
parent97f72e7507f79dfdb70d20e839f7d8e2070dcb9d
btrfs-progs: fix using on-disk structure to store in memory data

In 'qgroup_count' structure 'diskinfo' and 'info' are used to store only
in memory data but its types are for on-disk structure as a result sparse
warns it (different base types).  So fix it by adding new structure
'qgroup_info' to store in memory data and replace on-disk structure
'btrfs_qgroup_info_item' by 'qgroup_info'.  In addition in alloc_cnt()
'generation' is set but not used after that so remove the relevant code.

Signed-off-by: Byongho Lee <bhlee.kernel@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
qgroup-verify.c