Btrfs: deal with NULL space info
authorChris Mason <chris.mason@oracle.com>
Tue, 22 Sep 2009 18:45:50 +0000 (14:45 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 22 Sep 2009 18:45:50 +0000 (14:45 -0400)
commit33b4d47f5e24b986f486d7de9a2df915ad1fdfbc
tree198fb5c7d48bfd9e4010eb253e9e7573172a7680
parent1b2da372b0324b5c604fc8790e70a7efbeacb0b6
Btrfs: deal with NULL space info

After a balance it is briefly possible for the space info
field in the inode to be NULL.  This adds some checks
to make sure things properly deal with the NULL value.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c