Message ID | 20230130092157.1759539-18-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 D85D8C54EED for <linux-mm@archiver.kernel.org>; Mon, 30 Jan 2023 09:24:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D0E0B6B0081; Mon, 30 Jan 2023 04:24:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B43186B0095; Mon, 30 Jan 2023 04:24:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 598AF6B0081; Mon, 30 Jan 2023 04:24:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 421396B0093 for <linux-mm@kvack.org>; Mon, 30 Jan 2023 04:24:47 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 1AFCD1A099A for <linux-mm@kvack.org>; Mon, 30 Jan 2023 09:24:47 +0000 (UTC) X-FDA: 80410930614.05.C33AD97 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf11.hostedemail.com (Postfix) with ESMTP id 6D6D040005 for <linux-mm@kvack.org>; Mon, 30 Jan 2023 09:24:45 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=wzIp3onD; spf=temperror (imf11.hostedemail.com: error in processing during lookup of BATV+3ca177389f0c7d0d5156+7099+infradead.org+hch@bombadil.srs.infradead.org: DNS error) smtp.mailfrom=BATV+3ca177389f0c7d0d5156+7099+infradead.org+hch@bombadil.srs.infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1675070685; 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=dTKHKRVOiZxguFuEK9aGNi2iPJtbueeyhuxlyEfvmCc=; b=nKYe4/Vu5W4JZrLp03FDHOj2KEFkK4uiXFALMAgOhvuNsqH37viv3onmQE6axDmK0UkOLw ulqoxL2lDZCind+NfXckAO3KYppgDPJiHm3j0RC/JU68uaXv+HK7bbd2tnuKTE4E6shcHz rGefBp1bvOgIwqFQx5EaLzIFvIr9olE= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=wzIp3onD; spf=temperror (imf11.hostedemail.com: error in processing during lookup of BATV+3ca177389f0c7d0d5156+7099+infradead.org+hch@bombadil.srs.infradead.org: DNS error) smtp.mailfrom=BATV+3ca177389f0c7d0d5156+7099+infradead.org+hch@bombadil.srs.infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1675070685; a=rsa-sha256; cv=none; b=f1/VJ8GWY8HoU4WN4ZnG5qYn5EpYQ+jGiMlDlQmnrpOXpya7E0qWMkWQsOfwM42XCo1yMB 0MTQG1rN3ZYWudEl1OLh+RSr6TaNKDPzteiIZ2m+gqWnRbTQOUMEl8gVlo7/WpJKa1h/JR kfAb06+JmwNHnLZU8YH9MvS8duLtj6c= 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=dTKHKRVOiZxguFuEK9aGNi2iPJtbueeyhuxlyEfvmCc=; b=wzIp3onDl/KPC46x1A0YIq1Xgv pLhGrvY44JnhOswmbbuq0C74GTtpD3NrGPGojelKqVhVrEtEHiT0r+0GqLI674H8NYmqrsjLFirf7 hxfIK2wy6mGDx+vW+7kxehEbXYx61tyh5ddfQ2sDWTZ8P+aqq3sAxKLx5dO+abQ5AgZ3wH3ypXvXn W4rogyKTenvu0Hx+os5CHbAny1dwMRc5siT1LGqrIQjUGlLIS2K4Qdrxxms4i7Hay4qAxuoHIcFaQ cV5dj8wvsDa40CtrThXkbt/1gf+lggW0MJrJVur/nmMxpKsYC04bclV31iCc4pQafNHFKt3te144P gGQ8S6RA==; Received: from [2001:4bb8:19a:272a:732e:e417:47d7:2f4a] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pMQNT-002oJi-4d; Mon, 30 Jan 2023 09:23:03 +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 17/23] splice: use bvec_set_page to initialize a bvec Date: Mon, 30 Jan 2023 10:21:51 +0100 Message-Id: <20230130092157.1759539-18-hch@lst.de> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230130092157.1759539-1-hch@lst.de> References: <20230130092157.1759539-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-Stat-Signature: 3npo93ghanu4sjmhgtdazna3b5q5dupo X-Rspam-User: X-Rspamd-Queue-Id: 6D6D040005 X-Rspamd-Server: rspam06 X-HE-Tag: 1675070685-164558 X-HE-Meta: U2FsdGVkX18N+Q9dVZxiFqNHd5P80THZrbMMyVb/wY/JloOQeB6VwJnHuaqFh1Uw39EtEdo1IQUkSms09qo0uA/KVbQXak3j438ETPOJgWfom17djJlWzG+Y50nYwVKKLvtVh3chKujzAJbb8d8pXvdfNjuZ4ZPB4YOd4MKEWnFN4W/QWZDs3OvXqMgSBH6HxnnPY+Drq7af+q4qtJx5Oc7sR0msuYDxyplb4QJ0ezLHUe/jS2pGT47JsFGSTPHcdFmUlqyquwhLUvuGYd1YVhe5mELtzEfd4VWSmUeV6wHJkql+Gin1PseacIqKsA+t8ZgW7zpvK5PSqb3R0uLgiaLB1pjRQt5NVHftYCvi/EyxtD0m8mIEO8VUsfHCR7xD+6eiXnp95q5KX4EEihcDVx23adzHwVCvraQTyvdfHay+Z4LaXDB22VMxiJRVQHMVji5QicxpgUEDNog5vasg9fdeZ0Vg4T9+/3FKGXKpA+EBLb54tDz+ivwBO/op2rGNQthgRYADPpFBE9ESHhjEtGxakz0aC0IRVA1e7HxAZlQVvEAzYXJZ+uqCInq+qTshrFmnZVkSPyzYrWQeaXKxCooaaf5qxK8XTrTl31TQWRtDzc2qoSyqjlBVShHoky3AKFGmBjfDvHrhsZLtgwhqqjmwf8J9U4mj9TDDgkVJ2VFnzBoCPXaYjfpAfyzhvg19nQ1znoa5ASQEzX2nSxrE1dXa1tXUTVulGVvrnCn1ulBnThYgpOWG4hynJdP0PIVgHf/DShcBLhVdwJNWjg5KBBK/2yOqmR3iXcbB++6Adud2vMjz1cY61iDLttwTDApWN6NS6b6fJf7DH3Oz/RwLof421IrY8a17tgFYQSWxF4jh+Y+fTGQ4MDszQ+zv2tl1PWgKPlQ6ltgenM1KmTbLQMWCnV5tpTHzcL/nJMXGUIq28AcUSZl0rqCmwoUMIaZmdWRS1VF+Q6nU3GHH/a4 NNRfFNKO 7DjUYnO9miMzw6BtYrlj3ahr/15bkpFtwA2eF2DlkKGLP7SePBS4QcNJZZ58jIP/nX/7LWKmPS4un9jte2nf6wkkfzzeAkVG5uqgndkTZ9z1Q21IZhnbAi0+H39iZVGzR0G1hFP0gpAhRcqob633TGnv334VqrMZ6BeW5S9DcoAHQzHcDbhx3fw+QQ0I7zpeAp8vL9ydypiR/jfc0G2l6yaMNkRq531FG0qWEHY5xeKw3JCTgF1Zh9O8lz88mQ86GIKWoYTHbgaC+mQR+7DL18lTJiWjJPSHkkbMSl0n2f7E863d+Qwf4lVxTeXoSDRZFyIoLrnVyEart5QRPWWrvcnl9ldJVWQ14PvVdOaRKwxY7n4JK/s1cvXO+XWW4Qg9YAh5HKjWNaRD3DhFP4Bg7d2Pfzx1Lg3pwhg2Z+u/RqSzmKZlnZMIpjqeykmTpf0pF2JACESxIx7FRSs2mOxw6BGng0glD9Lh6Tgpl3Hazzlm8qrU= 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/fs/splice.c b/fs/splice.c index 5969b7a1d353a8..87d9b19349de63 100644 --- a/fs/splice.c +++ b/fs/splice.c @@ -675,9 +675,8 @@ iter_file_splice_write(struct pipe_inode_info *pipe, struct file *out, goto done; } - array[n].bv_page = buf->page; - array[n].bv_len = this_len; - array[n].bv_offset = buf->offset; + bvec_set_page(&array[n], buf->page, this_len, + buf->offset); left -= this_len; n++; }
Use the bvec_set_page helper to initialize a bvec. Signed-off-by: Christoph Hellwig <hch@lst.de> --- fs/splice.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)