Btrfs: fix df regression
authorJosef Bacik <josef@redhat.com>
Thu, 14 Oct 2010 18:52:27 +0000 (14:52 -0400)
committerJosef Bacik <josef@redhat.com>
Fri, 22 Oct 2010 19:54:55 +0000 (15:54 -0400)
commit89a55897a2fbbceb94480952784004bf23911d38
treee62ea1ced4c7941ab53e7aa7047ce8f0af0add9f
parentbf5fc093c5b625e4259203f1cee7ca73488a5620
Btrfs: fix df regression

The new ENOSPC stuff breaks out the raid types which breaks the way we were
reporting df to the system.  This fixes it back so that Available is the total
space available to data and used is the actual bytes used by the filesystem.
This means that Available is Total - data used - all of the metadata space.
Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/super.c