linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
To: Qu Wenruo <quwenruo@cn.fujitsu.com>, <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH] btrfs-progs: Fix a extent buffer leak in count_csum_range().
Date: Mon, 5 Jan 2015 17:20:35 +0900	[thread overview]
Message-ID: <54AA4953.3080703@jp.fujitsu.com> (raw)
In-Reply-To: <1420444575-23259-1-git-send-email-quwenruo@cn.fujitsu.com>

On 2015/01/05 16:56, Qu Wenruo wrote:
> 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 <quwenruo@cn.fujitsu.com>

Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>

> ---
>   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;
>   }
>   
> 


      reply	other threads:[~2015-01-05  8:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-05  7:56 [PATCH] btrfs-progs: Fix a extent buffer leak in count_csum_range() Qu Wenruo
2015-01-05  8:20 ` Satoru Takeuchi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54AA4953.3080703@jp.fujitsu.com \
    --to=takeuchi_satoru@jp.fujitsu.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=quwenruo@cn.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).