OSDN Git Service

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)
commit045d3967b6920b663fc010ad414ade1b24143bd1
tree7871a4be1982aa94d1fc7d5efa517da74a58383a
parentde7999afedff02c6631feab3ea726a0e8f8c3d40
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