Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231754
b: refs/heads/master
c: 299a08b
h: refs/heads/master
v: v3
  • Loading branch information
Miao Xie authored and Chris Mason committed Jan 16, 2011
1 parent 6be5e59 commit 368a3a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f580eb0931fbcb6dc3916f094f471671facd1daa
refs/heads/master: 299a08b1c34f9397797946a0fa215c5fd145c5cf
7 changes: 3 additions & 4 deletions trunk/fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,11 +790,10 @@ static int btrfs_statfs(struct dentry *dentry, struct kstatfs *buf)

rcu_read_lock();
list_for_each_entry_rcu(found, head, list) {
if (found->flags & (BTRFS_BLOCK_GROUP_METADATA |
BTRFS_BLOCK_GROUP_SYSTEM))
total_used_data += found->disk_total;
else
if (found->flags & BTRFS_BLOCK_GROUP_DATA)
total_used_data += found->disk_used;
else
total_used_data += found->disk_total;
total_used += found->disk_used;
}
rcu_read_unlock();
Expand Down

0 comments on commit 368a3a1

Please sign in to comment.