path: root/ctree.h
diff options
authorJosef Bacik <>2015-04-17 14:02:15 -0400
committerDavid Sterba <>2015-04-24 15:42:04 +0200
commit2681e00f00fe3dc0eb5d78dfeb344d18fccaeb6c (patch)
treec69c413ce7f4b3d4372441635b5d0d29890cec68 /ctree.h
parentfb399a13013889c9dc91ba75d4d6ce549500d2f2 (diff)
btrfs-progs: check for matching free space in cache
We have this check in the kernel but not in userspace, which makes fsck fail when we wouldn't have a problem in the kernel. This was meant to catch this case because it really isn't good, unfortunately it will require a design change to fix in the kernel so in the meantime add this check so we can be sure our tests only catch real problems. Thanks, Signed-off-by: Josef Bacik <> Signed-off-by: David Sterba <>
Diffstat (limited to 'ctree.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index 20427718..10dc8388 100644
--- a/ctree.h
+++ b/ctree.h
@@ -936,6 +936,7 @@ struct btrfs_block_group_cache {
struct btrfs_block_group_item item;
struct btrfs_space_info *space_info;
struct btrfs_free_space_ctl *free_space_ctl;
+ u64 bytes_super;
u64 pinned;
u64 flags;
int cached;