btrfs: add missing iputs on orphan cleanup failure
authorJosef Bacik <josef@toxicpanda.com>
Tue, 7 Feb 2023 16:57:22 +0000 (11:57 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:13 +0000 (18:01 +0200)
commita13bb2c03848e4f96f10486ba0b76f8d398bc71c
tree33bef2fdb64e176343c41dab4b2205dc891d5255
parent9cf14029d5fb42126b332aea708b787be9a5079e
btrfs: add missing iputs on orphan cleanup failure

We missed a couple of iput()s in the orphan cleanup failure paths, add
them so we don't get refcount errors. The iput needs to be done in the
check and not under a common label due to the way the code is
structured.

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