summaryrefslogtreecommitdiff
path: root/volumes.h
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-05-02 14:52:54 +0300
committerDavid Sterba <dsterba@suse.com>2018-06-07 16:37:33 +0200
commit9f8316f1c870415383d8761e1455f1375e2e00b0 (patch)
treeaa4420bcc344182f24d1af5d884e1c686f93febe /volumes.h
parentf841497b6085748262f10a96585836cd69070ba7 (diff)
btrfs-progs: Use exclude_super_stripes instead of account_super_bytes
Originally commit 2681e00f00fe ("btrfs-progs: check for matchingi free space in cache") added the account_super_bytes function to prevent false negative when running btrfs check. Turns out this function is really copied exclude_super_stripes, excluding the calls to exclude_super_stripes. Later commit e4797df6a9fa ("btrfs-progs: check the free space tree in btrfsck") introduced proper version of exclude_super_stripes. Instead of duplicating the function, just remove account_super_bytes and use exclude_super_stripes instead of the former. This also has the benefit of bringing the userspace code a bit closer to the kernel counterpart. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Su Yue <suy.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'volumes.h')
0 files changed, 0 insertions, 0 deletions