Btrfs: fix inode leak on failure to setup whiteout inode in rename
authorFilipe Manana <fdmanana@suse.com>
Thu, 5 May 2016 00:41:57 +0000 (01:41 +0100)
committerFilipe Manana <fdmanana@suse.com>
Fri, 13 May 2016 00:59:23 +0000 (01:59 +0100)
commitc990161888f387db136856337c237aa8d5003292
tree397eb09cf725f25d7c6a36efd411e88da148e7f7
parentcdd1fedf8261cd7a73c0596298902ff4f0f04492
Btrfs: fix inode leak on failure to setup whiteout inode in rename

If we failed to fully setup the whiteout inode during a rename operation
with the whiteout flag, we ended up leaking the inode, not decrementing
its link count nor removing all its items from the fs/subvol tree.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
fs/btrfs/inode.c