]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: rework arguments of btrfs_unlink_subvol
authorJosef Bacik <josef@toxicpanda.com>
Wed, 18 Dec 2019 22:20:27 +0000 (17:20 -0500)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Jan 2020 13:43:34 +0000 (14:43 +0100)
commit700c65fec98afb965b093d168f49b9f50f8161bd
tree7871a4be1982aa94d1fc7d5efa517da74a58383a
parent8232b225e25e4416b3ff2b2db14210327cbe6e5e
btrfs: rework arguments of btrfs_unlink_subvol

btrfs_unlink_subvol takes the name of the dentry and the root objectid
based on what kind of inode this is, either a real subvolume link or a
empty one that we inherited as a snapshot.  We need to fix how we unlink
in the case for BTRFS_EMPTY_SUBVOL_DIR_OBJECTID in the future, so rework
btrfs_unlink_subvol to just take the dentry and handle getting the right
objectid given the type of inode this is.  There is no functional change
here, simply pushing the work into btrfs_unlink_subvol() proper.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c