[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOg9mSStropnZ2LiOFgF6t1Tm3YBeR6eEE8d6m=+wORBVh8ugA@mail.gmail.com>
Date: Wed, 6 Jul 2016 13:28:56 -0400
From: Mike Marshall <hubcap@...ibond.com>
To: weiyj_lk@....com, Mike Marshall <hubcap@...ibond.com>
Cc: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH -next] orangefs: use vzalloc() instead of vmalloc()/memset(0)
Wei...
I have applied your patch and tested it, it seems good.
The gossip statement still references vmalloc, I used
"git commit --amend" to fix that for my test. I'll do the
same when I push to kernel.org too, if you're OK with that,
unless you want to fix it yourself and resend the patch...
Thanks!
-Mike
On Wed, Jul 6, 2016 at 9:23 AM, <weiyj_lk@....com> wrote:
> From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
>
> Use vzalloc() instead of vmalloc() and memset(0).
>
> Signed-off-by: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
> ---
> fs/orangefs/devorangefs-req.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/fs/orangefs/devorangefs-req.c b/fs/orangefs/devorangefs-req.c
> index a287a66..e839073 100644
> --- a/fs/orangefs/devorangefs-req.c
> +++ b/fs/orangefs/devorangefs-req.c
> @@ -442,14 +442,12 @@ static ssize_t orangefs_devreq_write_iter(struct kiocb *iocb,
> if (op->downcall.type != ORANGEFS_VFS_OP_READDIR)
> goto wakeup;
>
> - op->downcall.trailer_buf =
> - vmalloc(op->downcall.trailer_size);
> + op->downcall.trailer_buf = vzalloc(op->downcall.trailer_size);
> if (op->downcall.trailer_buf == NULL) {
> gossip_err("%s: failed trailer vmalloc.\n",
> __func__);
> goto Enomem;
> }
> - memset(op->downcall.trailer_buf, 0, op->downcall.trailer_size);
> n = copy_from_iter(op->downcall.trailer_buf,
> op->downcall.trailer_size,
> iter);
>
>
>
>
Powered by blists - more mailing lists