Btrfs: don't leak delayed node on path allocation failure
authorFilipe David Borba Manana <fdmanana@gmail.com>
Sat, 12 Oct 2013 19:32:59 +0000 (20:32 +0100)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:01:27 +0000 (22:01 -0500)
commit3c77bd94ecb4ad2653d1e3eb22295018533a1e21
treed915ce71692d350dfee6203f9152ae01ed853bee
parent361c093d7f99c3f6cbb07d5c580ce778ab418c42
Btrfs: don't leak delayed node on path allocation failure

If the path allocation failed, we would return without decrementing
the reference count in the delayed node we got before, resulting
in a leak.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/delayed-inode.c