Message ID | 20230203150634.3199647-19-hch@lst.de (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2041C61DA4 for <linux-mm@archiver.kernel.org>; Fri, 3 Feb 2023 15:08:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1E5AD6B0096; Fri, 3 Feb 2023 10:08:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1970C6B0095; Fri, 3 Feb 2023 10:08:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E4FF16B0098; Fri, 3 Feb 2023 10:08:20 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id C00606B0092 for <linux-mm@kvack.org>; Fri, 3 Feb 2023 10:08:20 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 8DEE0AAC69 for <linux-mm@kvack.org>; Fri, 3 Feb 2023 15:08:20 +0000 (UTC) X-FDA: 80426311560.07.4EE6DE8 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf03.hostedemail.com (Postfix) with ESMTP id CB14E20024 for <linux-mm@kvack.org>; Fri, 3 Feb 2023 15:08:18 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=dqg23m12; dmarc=none; spf=none (imf03.hostedemail.com: domain of BATV+416129e804eec9e75a33+7103+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+416129e804eec9e75a33+7103+infradead.org+hch@bombadil.srs.infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1675436898; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=uz6cImhGgWSk/8TF7+WqwepdT+RhrZkOFTZ89jD8wXQ=; b=DZz2zm7BBfXfJ8BnuQUQm3WNkLzdeBFN1kwKLJQesvfXzOuptAUi21npFuEbtlClA2Q3L+ Po76WW6Cyo1papSr1/+oso4byd7YfCjv70vtjI7m0GaZjU6U/m99zX4eDDiggSWZ2iCCIK d9C9WTCe710YVH/Lk3cmWQlrv2LBQYk= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=dqg23m12; dmarc=none; spf=none (imf03.hostedemail.com: domain of BATV+416129e804eec9e75a33+7103+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+416129e804eec9e75a33+7103+infradead.org+hch@bombadil.srs.infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1675436898; a=rsa-sha256; cv=none; b=zwrqZB/KFCl8d2mpCM35TE2KCibUDhl8bZDPO9Ksi68tchZhM7bq0wYIOsJ1Pt0whNSU/A aBD1Kt3WOD7S3UNRHX/sAXVyZHlriTKh97G2PnB21B/mnph+qdpY6g+2E6jhrmrGRx4PHq g16WclUXbWqBq18zLdNR98H0I4r0GCg= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=uz6cImhGgWSk/8TF7+WqwepdT+RhrZkOFTZ89jD8wXQ=; b=dqg23m12BEZIc+VFHWEdK49td8 EzPqHiaHBxtaecy8a4y8X9KmXahOdKp7jg+9tm4y17ceS5EUXi5Y0rhCFXCtwp5Y4fT6iz3WzLfXa 8PMeu0NJ+HoX4bd9cUb3vyguqPBAoG2V965H7JO5JZzulxx7QDX6LV1oL9vux38/jBcuxW/wn81F8 gblVm9QyYHoW0PQgRVWTrZyfQv2cWAnrvyZDrY5Y6XUcuq5wTO1C6nBYkE7G/Mnop4FcH7hL6puPI 5A7ewzCc4B45vJ7Vm0+43q0skGlxyWrXRnZrnfWC6wrYcc/Irn3LYyGNLzN48X/EmQ8CB1bkD2V1Q Emla/aRA==; Received: from [2001:4bb8:19a:272a:910:bb67:7287:f956] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNxf7-002bBR-Ve; Fri, 03 Feb 2023 15:07:38 +0000 From: Christoph Hellwig <hch@lst.de> To: Jens Axboe <axboe@kernel.dk> Cc: Ilya Dryomov <idryomov@gmail.com>, "Michael S. Tsirkin" <mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Minchan Kim <minchan@kernel.org>, Sergey Senozhatsky <senozhatsky@chromium.org>, Keith Busch <kbusch@kernel.org>, Sagi Grimberg <sagi@grimberg.me>, Chaitanya Kulkarni <kch@nvidia.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, David Howells <dhowells@redhat.com>, Marc Dionne <marc.dionne@auristor.com>, Xiubo Li <xiubli@redhat.com>, Steve French <sfrench@samba.org>, Trond Myklebust <trond.myklebust@hammerspace.com>, Anna Schumaker <anna@kernel.org>, Mike Marshall <hubcap@omnibond.com>, Andrew Morton <akpm@linux-foundation.org>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Chuck Lever <chuck.lever@oracle.com>, linux-block@vger.kernel.org, ceph-devel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-nvme@lists.infradead.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, devel@lists.orangefs.org, io-uring@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 18/23] io_uring: use bvec_set_page to initialize a bvec Date: Fri, 3 Feb 2023 16:06:29 +0100 Message-Id: <20230203150634.3199647-19-hch@lst.de> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230203150634.3199647-1-hch@lst.de> References: <20230203150634.3199647-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from <hch@infradead.org> by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: CB14E20024 X-Stat-Signature: cb4munsfr8khkhc5nfqug5g351k6p1n4 X-HE-Tag: 1675436898-737165 X-HE-Meta: U2FsdGVkX1+sB+1rBhtZG0/DASn+B65+5NkuoyoMVLMhkl7v0R4KY3GiGEgpCnUeQ5NZlLi6sV/BSbSAQj18wraeKmEcXKCuc/Z74BeIC9mviapjI/EFvamVFeLaZGJA+6fT26D/jrqO+A8pzwUwaJ2n+zt+3vtb9NmLxi7q9ruFUKN5v/HAcBmSzIWQcHsRRiohIDJWQZGDpj/53HTpx0AVWllJvfIJaczpgcI66wtiTOFznQugtRlK9D0Uqc0OQGNMgX+tc80aDXpVzen6c9jOYch69G570bq2xSNNw5/aL0csiVpkhrJMN0a51eQ1v8IVenpGh9kBfyAHtI+dyscjy8Y+/Bq5EUQXnlfMF1KmDDChVTfpG+XptJiKMlBPkU1CO2wHLrBITXSGmgRFvLyoOT8r8m34bK8L9uaX3YvZfZQYVDnj2YjAz4yRPloV4clKpn0sF8Z3+s3hdoiv1pNJE+bf2Hd0Gb6foQiqXIeMGwx6RCDk+ygSJDSJu6WVuDp01sGPEHf9NXEE27vSwFVehM5nqu4HGMJn287xbGQ1ViWtQ5u958P+bfgMN3KGv/upePIhjpg6L+OH/vkT3c+28kdXB438FgSeHOyjOgKZuV3KPF3cJY5ZLma5cP2Q8jxQ4nWX6CQB3gIjBkA/DH9tjYIPRcF/qXwYmYt7waxMsalAZxZG/VFQDK45PwRw9jDRWDZIfCzDnDjD9aJ5W2uQG7dej8DzEQl41Fr7FVGu64s/dScDTR9ptdubLXLL0/faccCJuFedEJe5jP6e+Rb/46pvrqrZv87Dnr5CydiPY5ZsRvwVX9b96aPJ0gstTlkqMcm6YRiNZtS8KCm1jpetpPaHEaaq1KiJneNdhtHlTR1oC0fIWo/DJXb7Plh9aitH8mdGPoi4TGVSze8NUif8TuSLrKbrqdprAgjIySmzCKnUFjZ53uwEX0Q9uSqFSfLOlg9PBvtd7d5UJMk soslzKV4 JHep5KXDXnceUthWu/xxgU18a1GuZGkOKPKwb16jNlryOHdsrjjvGhAdOgwIVLdWMOcu1ZDVGjuaJTJd6BsJQUkMyylNqlWQFFDIJa3xs1bRjYPv7e3q/UHShQPzwsEIfUnCzFGrx3VbueslkZtEjpr5RtSCqRtv4oIOjIVmpzmxF1L/J6PUppHnasZ2BfC0SciiAdrO7XXcZwpfyxoFRDB+9/2mmWRChjBL1Fcq6Vb3DeQlvD2sqvqTbAUok2QJNyHnbL4ozTLBbQntXOuyzur5iLs0nPENzAMASSUe2ogwBrC6qWx+pdRmfbsIfo30kk7KNsEXoKdXhEtL4hOMYaI17uKnS2ayPI9UyNK7SmKWKzei2HkuDz4nZwBByZI5erl4OmJw/h2L35QXF6s6rcYST8+MrWaS4th4m/dHOIXCYhYQP2Dh6d4Zo6hJE+69KkwmRwz9qfHyre4A3fgRUJdk2+LwMhEHbyNekF2eth1h8gWdKiwFTVCeB8JgB6ZRsFSby X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[01/23] block: factor out a bvec_set_page helper
|
expand
|
diff --git a/io_uring/rsrc.c b/io_uring/rsrc.c index 18de10c68a151b..a59fc02de5983c 100644 --- a/io_uring/rsrc.c +++ b/io_uring/rsrc.c @@ -1237,9 +1237,7 @@ static int io_sqe_buffer_register(struct io_ring_ctx *ctx, struct iovec *iov, size_t vec_len; vec_len = min_t(size_t, size, PAGE_SIZE - off); - imu->bvec[i].bv_page = pages[i]; - imu->bvec[i].bv_len = vec_len; - imu->bvec[i].bv_offset = off; + bvec_set_page(&imu->bvec[i], pages[i], vec_len, off); off = 0; size -= vec_len; }