mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
Btrfs: Fix NULL block groups on reading the inode
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
edbd8d4efe
commit
e52ec0eb62
2 changed files with 6 additions and 2 deletions
|
@ -402,6 +402,10 @@ void btrfs_read_locked_inode(struct inode *inode)
|
|||
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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue