diff options
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index a0e818cb0401..95ce8da63b28 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -3145,7 +3145,8 @@ int btrfs_check_data_free_space(struct inode *inode, u64 bytes) | |||
3145 | /* make sure bytes are sectorsize aligned */ | 3145 | /* make sure bytes are sectorsize aligned */ |
3146 | bytes = (bytes + root->sectorsize - 1) & ~((u64)root->sectorsize - 1); | 3146 | bytes = (bytes + root->sectorsize - 1) & ~((u64)root->sectorsize - 1); |
3147 | 3147 | ||
3148 | if (root == root->fs_info->tree_root) { | 3148 | if (root == root->fs_info->tree_root || |
3149 | BTRFS_I(inode)->location.objectid == BTRFS_FREE_INO_OBJECTID) { | ||
3149 | alloc_chunk = 0; | 3150 | alloc_chunk = 0; |
3150 | committed = 1; | 3151 | committed = 1; |
3151 | } | 3152 | } |