]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: enable shutdown ioctl for non-experimental builds
authorQu Wenruo <wqu@suse.com>
Tue, 14 Apr 2026 02:21:15 +0000 (11:51 +0930)
committerDavid Sterba <dsterba@suse.com>
Tue, 21 Apr 2026 02:01:31 +0000 (04:01 +0200)
commit41e706c07ef9f752a08f0b9567176ac79441895f
tree4aa9a4648b48d5efaf92560398d0489d85bed01f
parenta86a283430e1a44907b142c4f53e1f3ad24e87ae
btrfs: enable shutdown ioctl for non-experimental builds

Although commit 304076527c38 ("btrfs: move shutdown and remove_bdev
callbacks out of experimental features") tries to move both shutdown and
remove_bdev out of experimental features, that commit has only addressed
the super block operation callback, the ioctl one is left untouched.

Fix that missing aspect by also moving shutdown ioctl out of
experimental features.

Since we're here, also add unknown flag detection to reject any
unsupported shutdown flags.

Fixes: 304076527c38 ("btrfs: move shutdown and remove_bdev callbacks out of experimental features")
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c