summaryrefslogtreecommitdiff
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-07-01 18:21:33 +0400
committerChris Mason <clm@fb.com>2014-08-15 18:43:10 +0400
commitba7b6e62f420f5a8832bc161ab0c7ba767f65b3d (patch)
tree7ecd471565cba20fd416ec2bcfbc527ca260fb27 /fs/btrfs/extent-tree.c
parent19583ca584d6f574384e17fe7613dfaeadcdc4a6 (diff)
downloadlinux-ba7b6e62f420f5a8832bc161ab0c7ba767f65b3d.tar.xz
btrfs: adjust statfs calculations according to raid profiles
This has been discussed in thread: http://thread.gmane.org/gmane.comp.file-systems.btrfs/32528 and this patch implements this proposal: http://thread.gmane.org/gmane.comp.file-systems.btrfs/32536 Works fine for "clean" raid profiles where the raid factor correction does the right job. Otherwise it's pessimistic and may show low space although there's still some left. The df nubmers are lightly wrong in case of mixed block groups, but this is not a major usecase and can be addressed later. The RAID56 numbers are wrong almost the same way as before and will be addressed separately. CC: Hugo Mills <hugo@carfax.org.uk> CC: cwillu <cwillu@cwillu.com> CC: Josef Bacik <jbacik@fb.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
0 files changed, 0 insertions, 0 deletions