Message ID | 20230922120227.1173720-2-dhowells@redhat.com (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 36BDECD4F5B for <linux-mm@archiver.kernel.org>; Fri, 22 Sep 2023 12:02:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C88DD6B02C1; Fri, 22 Sep 2023 08:02:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C12DB6B02C2; Fri, 22 Sep 2023 08:02:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A64A16B02C3; Fri, 22 Sep 2023 08:02:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 966B26B02C1 for <linux-mm@kvack.org>; Fri, 22 Sep 2023 08:02:43 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 68923810BD for <linux-mm@kvack.org>; Fri, 22 Sep 2023 12:02:43 +0000 (UTC) X-FDA: 81264096606.28.52D143F Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf27.hostedemail.com (Postfix) with ESMTP id 2A6304004F for <linux-mm@kvack.org>; Fri, 22 Sep 2023 12:02:39 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=FMzP6vg1; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf27.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1695384160; a=rsa-sha256; cv=none; b=3a+YElHjvlKgDuUTp7/cPI+OHeg6u5VGYIpaH5j7gulZvwwiRqJAnVEk+YfKU+CgOkxGTA xUIn0KdZ2bp7Au7ceLTg3f/baQ+5mv5p8vpR48Sq8nWJUUe+bmKH94L8dmdS6DPra1iK1e yFmhWcHBF+OUVB9lvJM8NE0k6N80fUY= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=FMzP6vg1; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf27.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695384160; 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=LZvLwoc939E6B4TZcwRPSf2buY4OlPtMZfRg4M/9mP0=; b=efHeS6wLooeKnfdR7hH3rjG08CeVjxXUBkhAan/9d2PF9Nu8BhSD3pFOrxPuDxFH8Jt1eJ yQqXaiecwwgzkmcrJZ/viQ+hI4Z+vheItTNG052xPBxWM5YpCvafIfzh6gVDH5PvwtzwK3 jVf/GHChPHiN3YFJaxzvSeYMC5SigPU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695384159; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LZvLwoc939E6B4TZcwRPSf2buY4OlPtMZfRg4M/9mP0=; b=FMzP6vg1XwFIxbOA5n7rK1GQ1DPPKHAuduWQIsC9Cs5z5KF4lL+GxwKE3ANyBiHUL6ZgcF vgpU0qf/4wmIKIGfl7WpJe6Vs/oUxBYfeCi290lxH3mCjEM9q14uWYbfkLpL0lMWYWrM4X /sVecALT51uQLX2nh7RLZ+RAOUIXjls= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-396-9KECr8cHMfC82Ed_BGv0kQ-1; Fri, 22 Sep 2023 08:02:35 -0400 X-MC-Unique: 9KECr8cHMfC82Ed_BGv0kQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4981C803470; Fri, 22 Sep 2023 12:02:34 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.216]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9AA7310F1BE8; Fri, 22 Sep 2023 12:02:32 +0000 (UTC) From: David Howells <dhowells@redhat.com> To: Jens Axboe <axboe@kernel.dk> Cc: David Howells <dhowells@redhat.com>, Al Viro <viro@zeniv.linux.org.uk>, Linus Torvalds <torvalds@linux-foundation.org>, Christoph Hellwig <hch@lst.de>, Christian Brauner <christian@brauner.io>, David Laight <David.Laight@ACULAB.COM>, Matthew Wilcox <willy@infradead.org>, Jeff Layton <jlayton@kernel.org>, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 01/13] iov_iter: Remove last_offset from iov_iter as it was for ITER_PIPE Date: Fri, 22 Sep 2023 13:02:15 +0100 Message-ID: <20230922120227.1173720-2-dhowells@redhat.com> In-Reply-To: <20230922120227.1173720-1-dhowells@redhat.com> References: <20230922120227.1173720-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 2A6304004F X-Stat-Signature: e7rmzrhdboofa4fdk77bj9c1i784r4pf X-HE-Tag: 1695384159-673304 X-HE-Meta: U2FsdGVkX18S0uYyJ38ncG8gdxcqMf9jKBDzcsxNovpibPQUuatOGvffTeLSCoPhhP+VA0TW/Dl8RiYZ75wIUUC3Xr+IPycyI8Ehn4iTzycyOP5Mnlfd9FiL91RKcB7+ZwHErlcOEGRLs8BB8KXGr5tx73AQJGgMB50xbLnvl4BWXgJhYx8hA17Inl5lb3Gs5xWrAw6WlQgDqs5T684Pezwey15nppWXdaDlcCm9dC/eUmwf3bij2VuFmlbRajbeXi6WZgPyYGhKvPDuse4lGK02SHK6Q9t8yJv9yloQ7Hq4Qll29729l7PuXGBlHylrAAydYzxRP1SuOKHb8uDSaxJOKO4fT2jCLGwY4oAjs6go9clBf47TmfRHPAhLBz/Nv7o6Dz4ZO7fXpPr3bokkaeC6VjIbi0vAU2TW2QcmKZFMwz0XmqHFI9SXKJ1tbXXTrxV8aZ0vfjp7vrU1jwUuyhs8rFgicRMY5Khho+NuEU3xgem2K0KLbh2oDNaDvEpPlQh0ud0/8Md4Dvr0GFE5dJBwRaoW5bwydebVBQ0u03iqhsdyfE421njNANcW79vl1a4uc2nC1CylyRrcrsUO4tdo6Zw5FBFkzize/Yn2Zx2GBp0W/QC2RK5s86C8UACKBC47oa3x/Rxaeo7NZr07Fgi7m9PgUz/5Qs6ZpmNtOLvzDveoYmamIn/6GinZmTfVcnf3qlGdySFaGW/zkOyKEwX9yLaFyY2qnvXb01eC5w/vIQaZAab2MXF5M4QrzSDsLIeU4mNuYx0+vRaQBOSyPVo2+otOX9Uj55Hx7N22XUwN4Azq0Lu2MfYZzZcze12OTtK1xcJs99QllvEqAfSBRLxPL/7g1BVF+3OabNq3IciDs3i8wZoUK21rVyf5qvTZIo7S1i0eVriBM7m5dMUEhaF/PVW+/q+GnzP+3TqOp93XjbW9BRS2cwFFUsmDiyeuCR3nOQUSgiR2JuXNlax ZUEO09Zw 23p9m5G/hp7nqE0HJbyHSlhjrL76Up94+9LHPK+5el1xNHNuh1gjtHQn73VPaX6oeqxIVTCk80r7WsNnVgXDFRTPhBLjE43O3/qBTA8ib7O7Nb3rgD/m58fpDkIapnocafFI0KAFnA2Uc8bb7m0X8MhAd6vUon7ONpcaHHr4nplAwyui1pNDuNu4l6vuEE8LwhgLFgiIfeKLYYNJM+P/O10Ix665H/qxaIbITM+XrLPH7PV4bDRCKEGePN5zoFwMNtNY7fzsv9F3d6pJuj+hoV+jjXECd/wEMnoyCsFCLjpx4uMpALIOU4gkwA8WdGuexK08xWSLb62nn++Uck/LRL65/bnHH8Bh5Zl3ks3I1MRYDI1Bfon1BXWKf8NkPfFrZjA06oHUmiEn+4aQVySKAZS09f5OMjHk/VttdOYylWTVq3HwTOmU4f5Cag4OKKw3HYs6jMgZmjMeoRbwZFbT/CP9nYn84h9NmLihAikjNt0yJuBEdv8nB3my4HHKEoh7t3MtT/5Jwnm9H4zicswcs+SZqT20BEOR+nHvv2t2q2q5IaGodj13jMS98IsS0cobMtDumlSY52seUZqU= 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 |
iov_iter: Convert the iterator macros into inline funcs
|
expand
|
diff --git a/include/linux/uio.h b/include/linux/uio.h index 42bce38a8e87..2000e42a6586 100644 --- a/include/linux/uio.h +++ b/include/linux/uio.h @@ -44,10 +44,7 @@ struct iov_iter { bool nofault; bool data_source; bool user_backed; - union { - size_t iov_offset; - int last_offset; - }; + size_t iov_offset; /* * Hack alert: overlay ubuf_iovec with iovec + count, so * that the members resolve correctly regardless of the type
Now that ITER_PIPE has been removed, iov_iter::last_offset is no longer used, so remove it. Signed-off-by: David Howells <dhowells@redhat.com> cc: Alexander Viro <viro@zeniv.linux.org.uk> cc: Jens Axboe <axboe@kernel.dk> cc: Christoph Hellwig <hch@lst.de> cc: Christian Brauner <christian@brauner.io> cc: Matthew Wilcox <willy@infradead.org> cc: Linus Torvalds <torvalds@linux-foundation.org> cc: David Laight <David.Laight@ACULAB.COM> cc: linux-block@vger.kernel.org cc: linux-fsdevel@vger.kernel.org cc: linux-mm@kvack.org --- include/linux/uio.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)