commit | e52ec0eb62e76ea584c8438ef92933e9b815db80 | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Fri Dec 21 16:36:24 2007 -0500 |
committer | Chris Mason <chris.mason@oracle.com> | Thu Sep 25 11:03:58 2008 -0400 |
tree | 255f8156b76ea343309dd4360e17a5fc7b9772c9 | |
parent | edbd8d4efe4ddaf29a175ae504e2c9a05a96ebee [diff] [blame] |
Btrfs: Fix NULL block groups on reading the inode Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index f6a2011..3c7bf3b 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c
@@ -402,6 +402,10 @@ BTRFS_I(inode)->block_group = btrfs_lookup_block_group(root->fs_info, alloc_group_block); + if (!BTRFS_I(inode)->block_group) { + BTRFS_I(inode)->block_group = btrfs_find_block_group(root, + NULL, 0, 0, 0); + } btrfs_free_path(path); inode_item = NULL;