]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: pass dentry to btrfs_mksubvol() and btrfs_mksnapshot()
authorDavid Sterba <dsterba@suse.com>
Thu, 26 Jun 2025 14:30:10 +0000 (16:30 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 22:05:00 +0000 (00:05 +0200)
commita5f0e0a4df6c37ab1d21035b05976ab1eeb8dc95
treef7d194aca2c39b9420fb10228c88951997de8ea0
parent34f6cc5b187f41e0268ebec363bcf5f98c0defcf
btrfs: pass dentry to btrfs_mksubvol() and btrfs_mksnapshot()

There's no reason to pass 'struct path' to btrfs_mksubvol(), though it's
been like the since the first commit 76dda93c6ae2c1 ("Btrfs: add
snapshot/subvolume destroy ioctl").  We only use the dentry so we should
pass it directly.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c