aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/free-space-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/free-space-cache.c')
-rw-r--r--fs/btrfs/free-space-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c
index 701ef5951e3f..1ea10731797a 100644
--- a/fs/btrfs/free-space-cache.c
+++ b/fs/btrfs/free-space-cache.c
@@ -105,7 +105,7 @@ struct inode *lookup_free_space_inode(struct btrfs_root *root,
105 block_group->disk_cache_state = BTRFS_DC_CLEAR; 105 block_group->disk_cache_state = BTRFS_DC_CLEAR;
106 } 106 }
107 107
108 if (!btrfs_fs_closing(root->fs_info)) { 108 if (!block_group->iref) {
109 block_group->inode = igrab(inode); 109 block_group->inode = igrab(inode);
110 block_group->iref = 1; 110 block_group->iref = 1;
111 } 111 }