diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index b1d9595762ef..09ebe5acbe43 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -4629,7 +4629,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; }