The commit f495a2ac6611 ("btrfs-progs: fsck: remove unfriendly BUG_ON()
for searching tree failure") is causing tons of extent buffer leak if some
csum mismatches in btrfsck.This is caused by a misplaced btrfs_release_path(), fix it. Signed-off-by: Qu Wenruo <[email protected]> --- cmds-check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds-check.c b/cmds-check.c index d2d218a..5b644cf 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -1186,9 +1186,9 @@ static int count_csum_range(struct btrfs_root *root, u64 start, path.slots[0]++; } out: + btrfs_release_path(&path); if (ret < 0) return ret; - btrfs_release_path(&path); return 0; } -- 2.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
