From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <440e1815a8b6f1605b6bce51af6eceadf8e742f7.camel@kernel.org> Subject: Re: [PATCH 07/15] rbd: use bvec_virt From: Jeff Layton Date: Thu, 05 Aug 2021 08:01:13 -0400 In-Reply-To: <20210804095634.460779-8-hch@lst.de> References: <20210804095634.460779-1-hch@lst.de> <20210804095634.460779-8-hch@lst.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-um" Errors-To: linux-um-bounces+geert=linux-m68k.org@lists.infradead.org To: Christoph Hellwig , Jens Axboe Cc: Richard Weinberger , Anton Ivanov , Geoff Levand , Ilya Dryomov , Paolo Bonzini , Stefan Hajnoczi , Song Liu , Mike Snitzer , Coly Li , Stefan Haberland , Jan Hoeppner , "Martin K. Petersen , Phillip Lougher" , linux-block@vger.kernel.org, dm-devel@redhat.com, linux-um@lists.infradead.org, ceph-devel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-raid@vger.kernel.org, linux-bcache@vger.kernel.org, linux-nvme@lists.infradead.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org On Wed, 2021-08-04 at 11:56 +0200, Christoph Hellwig wrote: > Use bvec_virt instead of open coding it. > > Signed-off-by: Christoph Hellwig > --- > drivers/block/rbd.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c > index 6d596c2c2cd6..e65c9d706f6f 100644 > --- a/drivers/block/rbd.c > +++ b/drivers/block/rbd.c > @@ -2986,8 +2986,7 @@ static bool is_zero_bvecs(struct bio_vec *bvecs, u32 bytes) > }; > > ceph_bvec_iter_advance_step(&it, bytes, ({ > - if (memchr_inv(page_address(bv.bv_page) + bv.bv_offset, 0, > - bv.bv_len)) > + if (memchr_inv(bvec_virt(&bv), 0, bv.bv_len)) > return false; > })); > return true; LGTM Reviewed-by: Jeff Layton _______________________________________________ linux-um mailing list linux-um@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-um