diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 47e762856521..2799b10592d5 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -4658,7 +4658,7 @@ int btrfs_delete_subvolume(struct btrfs_inode *dir, struct dentry *dentry) spin_unlock(&dest->root_item_lock); btrfs_warn(fs_info, "attempt to delete subvolume %llu with active swapfile", - btrfs_root_id(root)); + btrfs_root_id(dest)); ret = -EPERM; goto out_up_write; }