Btrfs: fix the df ioctl to report raid types
authorJosef Bacik <josef@redhat.com>
Wed, 29 Sep 2010 15:22:36 +0000 (11:22 -0400)
committerJosef Bacik <josef@redhat.com>
Fri, 22 Oct 2010 19:54:53 +0000 (15:54 -0400)
commitbf5fc093c5b625e4259203f1cee7ca73488a5620
tree099385541c534c1adcdb4251277ee4364562d5ec
parenta1f765061e1491d5ec467429d0d6adfd9df2f6d9
Btrfs: fix the df ioctl to report raid types

The new ENOSPC stuff broke the df ioctl since we no longer create seperate space
info's for each RAID type.  So instead, loop through each space info's raid
lists so we can get the right RAID information which will allow the df ioctl to
tell us RAID types again.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/ioctl.c