Btrfs: delete dead code in btrfs_orphan_commit_root()
authorOmar Sandoval <osandov@fb.com>
Fri, 11 May 2018 20:13:34 +0000 (13:13 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:23:49 +0000 (18:23 +0200)
commit05a5bd7c4decf828f79b62863e520c9ff86eef72
treee94cf143f9b8a518941d0d8d40268e31d09962dd
parent7b40b695b4d06666c4665f6b5718085f2c6a5da2
Btrfs: delete dead code in btrfs_orphan_commit_root()

btrfs_orphan_commit_root() tries to delete an orphan item for a
subvolume in the tree root, but we don't actually insert that item in
the first place. See commit 0a0d4415e338 ("Btrfs: delete dead code in
btrfs_orphan_add()"). We can get rid of it.

Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c