diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 23c596cd1b98..c931a4dbd031 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -8011,6 +8011,9 @@ int btrfs_drop_inode(struct inode *inode) | |||
8011 | { | 8011 | { |
8012 | struct btrfs_root *root = BTRFS_I(inode)->root; | 8012 | struct btrfs_root *root = BTRFS_I(inode)->root; |
8013 | 8013 | ||
8014 | if (root == NULL) | ||
8015 | return 1; | ||
8016 | |||
8014 | /* the snap/subvol tree is on deleting */ | 8017 | /* the snap/subvol tree is on deleting */ |
8015 | if (btrfs_root_refs(&root->root_item) == 0 && | 8018 | if (btrfs_root_refs(&root->root_item) == 0 && |
8016 | root != root->fs_info->tree_root) | 8019 | root != root->fs_info->tree_root) |