]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc729e26742952b1921f779bf7e50735c512f6da3
tree397eb09cf725f25d7c6a36efd411e88da148e7f7
parent94a7decc5ae6ffab344233222ee8c903d89b69b9
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