diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 23c596cd1b985216bd3d4743540a1f7352920898..c931a4dbd03136ca3de74ab1ad9371b6fbdf23f4 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8011,6 +8011,9 @@ int btrfs_drop_inode(struct inode *inode) { struct btrfs_root *root = BTRFS_I(inode)->root; + if (root == NULL) + return 1; + /* the snap/subvol tree is on deleting */ if (btrfs_root_refs(&root->root_item) == 0 && root != root->fs_info->tree_root)