]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: print correct subvol num if active swapfile prevents deletion
authorMark Harmstone <mark@harmstone.com>
Tue, 17 Feb 2026 17:32:39 +0000 (17:32 +0000)
committerDavid Sterba <dsterba@suse.com>
Thu, 26 Feb 2026 14:03:28 +0000 (15:03 +0100)
commit1c7e9111f4e6d6d42bc47759c9af1ef91f03ac2c
treee78e40389723b0ff0423e01ef5ba2a78e944d7a9
parent44e2fda66427a0442d8d2c0e6443256fb458ab6b
btrfs: print correct subvol num if active swapfile prevents deletion

Fix the error message in btrfs_delete_subvolume() if we can't delete a
subvolume because it has an active swapfile: we were printing the number
of the parent rather than the target.

Fixes: 60021bd754c6 ("btrfs: prevent subvol with swapfile from being deleted")
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c