From patchwork Mon Sep 25 12:02:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 13397687 Return-Path: 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 8D32ECE7A95 for ; Mon, 25 Sep 2023 12:03:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0A2DE6B0136; Mon, 25 Sep 2023 08:03:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F1C966B0137; Mon, 25 Sep 2023 08:03:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D96966B0138; Mon, 25 Sep 2023 08:03:25 -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 C363B6B0136 for ; Mon, 25 Sep 2023 08:03:25 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 8BFE5120C83 for ; Mon, 25 Sep 2023 12:03:25 +0000 (UTC) X-FDA: 81274984770.08.55F039C Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf21.hostedemail.com (Postfix) with ESMTP id 1CC531C0012 for ; Mon, 25 Sep 2023 12:03:21 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=EiGOB+WN; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf21.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=1695643402; 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=Oar+kwwgNHTQYEPgerj9aymbewjMqjKAxmIDfEXM7oIvotIxlsl81IIPW0eRoJHVgpVQjt jaU75jJ3+8mjRlbKEuaSUBiM5Gmw2gdEy+/Z2C7E/02S6CMcf9PXHNX8iad7DF3/R2u1pu /hhhTHKBwvkV8UTVlcAA9QYc0J84aSw= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=EiGOB+WN; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf21.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=1695643402; a=rsa-sha256; cv=none; b=FBX4Z3PPSu+PsHkalOHE/UGezdHXQt1YF5Nbx5JT23LrNf0KgtA7QCtKxHWtnfYp2JCAfu dEp4lAETc+djXuQy4b1nzVN2GZrrnEEJfbRyzRWpt0D+PeHu0WqqrPEs6HgkjvGTlnXX/a TJVdJRcrfdK84fbyfTAt9VGtlPe0pO8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695643401; 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=EiGOB+WNm82wr9IbM1uFhpJfLehdgUvX2kDCys7AjPInMDdJCwy0rGdnpsdRJ5Ky+2BS+4 D3mjdrMRdKERyYzLKYxfHAPAb+WUljATej6Jh4DcLCVnbi85ShV/GfpK2ufZSQKU5Br3IU wh6+J8C3lijsZ9P4pw64bPbDEEQs7lE= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-564-j_NYb_xaP4-1I6Rd3LFSKw-1; Mon, 25 Sep 2023 08:03:19 -0400 X-MC-Unique: j_NYb_xaP4-1I6Rd3LFSKw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (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 50026382135D; Mon, 25 Sep 2023 12:03:18 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.216]) by smtp.corp.redhat.com (Postfix) with ESMTP id A718C51E3; Mon, 25 Sep 2023 12:03:16 +0000 (UTC) From: David Howells To: Jens Axboe Cc: David Howells , Al Viro , Linus Torvalds , Christoph Hellwig , Christian Brauner , David Laight , Matthew Wilcox , Jeff Layton , 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 v7 01/12] iov_iter: Remove last_offset from iov_iter as it was for ITER_PIPE Date: Mon, 25 Sep 2023 13:02:58 +0100 Message-ID: <20230925120309.1731676-2-dhowells@redhat.com> In-Reply-To: <20230925120309.1731676-1-dhowells@redhat.com> References: <20230925120309.1731676-1-dhowells@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Rspamd-Queue-Id: 1CC531C0012 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: 74ust3qic89i9wyfu16ka57fcr5o77nd X-HE-Tag: 1695643401-787573 X-HE-Meta: U2FsdGVkX19cZNbUe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tL5Ec4Ar2z6Bp7U/nDVEpxqO+RUdIr71myLuN9aXE7u4RaSZUY6xbGdrwVflMplBS9ew7mlpj+E7TvbVHcBfk/e/8MFi37RIVXhYWtkhISC7hRz+JUjyRD/Wc28lYF21qG1RcRFOmSN6t6UFUtx07rs86gM9F9UY+X5BWQboFiX96Tispx/OIlZqBQKQ5sT0j4rQbuXHUWWgcx0/LkWwxF9h2ekH3Do1++fcbwr243odJqRRA1/ibnTsDzS/ZlJkY9z6p5RNuW4sPHFBbbxkIJtjZQwpslr1L1q9Snl153r7EA0Q2uaphprncLNm0k7cQWQv5AYn2CcEWpbxhveuGqeiOlV8U1sXTAaFoxGF6Q/Zpvk4o5fhSqgLq0HnBRbYxwdrPBIHRzQ4hgpYn0RxWlEFJF43/2bG/RGDzKMDWW4Bj8M9d23APt+t87seIZJbz6sUIfJ1ygZPoKXuxMNMY73+J7e4piS/mXg= 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: Now that ITER_PIPE has been removed, iov_iter::last_offset is no longer used, so remove it. Signed-off-by: David Howells cc: Alexander Viro cc: Jens Axboe cc: Christoph Hellwig cc: Christian Brauner cc: Matthew Wilcox cc: Linus Torvalds cc: David Laight 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(-) 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