[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170608074124.GA13953@lst.de>
Date: Thu, 8 Jun 2017 09:41:24 +0200
From: Christoph Hellwig <hch@....de>
To: Johannes Thumshirn <jthumshirn@...e.de>
Cc: Christoph Hellwig <hch@....de>, Sagi Grimberg <sagi@...mberg.me>,
Keith Busch <keith.busch@...el.com>,
Hannes Reinecke <hare@...e.de>,
Max Gurtovoy <maxg@...lanox.com>,
Linux NVMe Mailinglist <linux-nvme@...ts.infradead.org>,
Linux Kernel Mailinglist <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v6 01/10] scatterlist: add sg_zeroout_area() helper
> size_t sg_pcopy_to_buffer(struct scatterlist *sgl, unsigned int nents,
> void *buf, size_t buflen, off_t skip);
>
> +size_t sg_zeroout_area(struct scatterlist *sgl, unsigned int nents,
> + size_t buflen, off_t skip);
Maybe sg_zero_buffer to fit with the other functions in the family?
(I'd be happy to fix this up if you're ok and we don't need another
respin otherwise).
> + while ((offset < buflen) && sg_miter_next(&miter)) {
Nit: no need for the inner braces.
Otherwise looks good:
Reviewed-by: Christoph Hellwig <hch@....de>
Powered by blists - more mailing lists