[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5B62A1CF.7040904@huawei.com>
Date: Thu, 2 Aug 2018 14:16:47 +0800
From: zhong jiang <zhongjiang@...wei.com>
To: Andy Shevchenko <andy.shevchenko@...il.com>
CC: John Garry <john.garry@...wei.com>,
"James E . J . Bottomley" <jejb@...ux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
<aacraid@...rosemi.com>, linux-scsi <linux-scsi@...r.kernel.org>,
"Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/4] driver/scsi/fnic/fnic_trace: Use vzalloc to zero
instead of vmalloc+memset
On 2018/8/1 23:30, Andy Shevchenko wrote:
> On Wed, Aug 1, 2018 at 4:26 PM, zhong jiang <zhongjiang@...wei.com> wrote:
>> The vzalloc is better than vmalloc+memset, so replace them to make
>> the code concise.
>> - fnic_trace_buf_p = (unsigned long)vmalloc((trace_max_pages * PAGE_SIZE));
>> + fnic_trace_buf_p = (unsigned long)vzalloc((trace_max_pages * PAGE_SIZE));
> At the same time you may get rid of unnecessary parens.
>
Thanks , I will repost with the change.
Thanks
zhong jiang
Powered by blists - more mailing lists