diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index a1a76b2a61f9..caa5bcc62f16 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -790,11 +790,10 @@ static int btrfs_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
790 | 790 | ||
791 | rcu_read_lock(); | 791 | rcu_read_lock(); |
792 | list_for_each_entry_rcu(found, head, list) { | 792 | list_for_each_entry_rcu(found, head, list) { |
793 | if (found->flags & (BTRFS_BLOCK_GROUP_METADATA | | 793 | if (found->flags & BTRFS_BLOCK_GROUP_DATA) |
794 | BTRFS_BLOCK_GROUP_SYSTEM)) | ||
795 | total_used_data += found->disk_total; | ||
796 | else | ||
797 | total_used_data += found->disk_used; | 794 | total_used_data += found->disk_used; |
795 | else | ||
796 | total_used_data += found->disk_total; | ||
798 | total_used += found->disk_used; | 797 | total_used += found->disk_used; |
799 | } | 798 | } |
800 | rcu_read_unlock(); | 799 | rcu_read_unlock(); |