[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130105194135.GK20106@blackbox.djwong.org>
Date: Sat, 5 Jan 2013 11:41:35 -0800
From: "Darrick J. Wong" <darrick.wong@...cle.com>
To: Guo Chao <yan@...ux.vnet.ibm.com>
Cc: tytso@....edu, linux-ext4@...r.kernel.org
Subject: Re: [PATCH 2/3] ext4: release buffer in failed path in dx_probe()
On Sat, Jan 05, 2013 at 03:43:00PM +0800, Guo Chao wrote:
> If checksum fails, we should also release the buffer
> read from previous iteration.
>
> Cc: Darrick J. Wong <darrick.wong@...cle.com>
> Signed-off-by: Guo Chao <yan@...ux.vnet.ibm.com>
> ---
> fs/ext4/namei.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
> index 843e29f..e249a47 100644
> --- a/fs/ext4/namei.c
> +++ b/fs/ext4/namei.c
> @@ -722,7 +722,7 @@ dx_probe(const struct qstr *d_name, struct inode *dir,
> ext4_warning(dir->i_sb, "Node failed checksum");
> brelse(bh);
> *err = ERR_BAD_DX_DIR;
> - goto fail;
> + goto fail2;
Good catch!
Acked-by: Darrick J. Wong <darrick.wong@...cle.com>
--D
> }
> set_buffer_verified(bh);
>
> --
> 1.7.9.5
>
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists