]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: fix inaccurate available space on raid0 profile
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 15 Dec 2011 01:12:02 +0000 (20:12 -0500)
committerChris Mason <chris.mason@oracle.com>
Fri, 16 Dec 2011 19:44:30 +0000 (14:44 -0500)
commit381081f91acd0cb8f0260ed1a56a215fa63487bc
treea10204e7bc107c3fdaff8b0b6150b4c5b13dc19c
parentd6885deec60078e9eceea028f1ddabe060c95616
Btrfs: fix inaccurate available space on raid0 profile

When we use raid0 as the data profile, df command may show us a very
inaccurate value of the available space, which may be much less than the
real one. It may make the users puzzled. Fix it by changing the calculation
of the available space, and making it be more similar to a fake chunk
allocation.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
(cherry picked from commit 39fb26c398ddf8d7794a85e896cfe1a42e55524b)
fs/btrfs/super.c