Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp464901rwl; Wed, 5 Apr 2023 03:25:52 -0700 (PDT) X-Google-Smtp-Source: AKy350ZrYojAUBcbrA7MbniPnfdG1SyjJ4boyGJ9yLr2NzzGfp87uYmypc0iE4/Bjcaqc3uLvMrh X-Received: by 2002:a17:90b:3807:b0:240:883:8ff8 with SMTP id mq7-20020a17090b380700b0024008838ff8mr6494272pjb.3.1680690352682; Wed, 05 Apr 2023 03:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680690352; cv=none; d=google.com; s=arc-20160816; b=qfDVbQUfNo00kPhG2uxAMs+fTCf91rpjekWpXMvB0qI9arzo99+WEu2AHRlsGA0lBO aqIhjpvg+Pr80N7wpFB067QcdMoIYru2r03iAuajoOwJxdzvTrQXSOCEY7Q9/RM9XvIA q1MaH4IAP5T3Ys6lp1qvMYwhi86DJUjs75sK9R+TwPGvcgB0i/cPK/IkQRmlbWY5doDl CCjtCYTsgOVqVaxYug0lA3bHsDXlMw26Nz2+hjnl6p8ky57gjHC5HznsweUYQzO6PjUg 516HdByZTLpufwE/lE+9Z4yCcrH62uvMHFDEToSUHAuQAHtsUYYB1jUP4/HTJJown1Wl OS9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:from:organization:dkim-signature; bh=5IwQffGQgbW5+GGPT7GHsPI80Xqx/MpQcxXTIga+7R4=; b=klTDW3kPH5GD6oTNAvqCXj4Xo4SEb/pqD5idLAoMVJqJCjqEzJlJKiJ/SvJu3XcESG QlFStYmbH3qQX5aDAg+37inqIt4CmkAXRvpbmg0h2jOmCaXhpi+DENWAjZBdk98PQomq +cpKXf1WOnoKJpjcNzAdX7eWimZ07IZijt6NpGvFesmXFHQ7PedtYUDutPjI6j60LF+v W0meZF2mRVYB3Dg1zpRprJ/v8o3IDMUfriH3dhDUFTnDjJWgHRZsQ2c3USNa0HzAzSi9 ++Xrpgu9Sp6A4AvWqVeMZMHliKCbiV8Gc88Dm/Osl49pjJRFZiSv66qDRiKdlBsNYblR DKUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MUbAtwA1; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a632a03000000b00513f61abcc5si334754pgq.348.2023.04.05.03.25.33; Wed, 05 Apr 2023 03:25:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MUbAtwA1; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237610AbjDEKQG (ORCPT + 99 others); Wed, 5 Apr 2023 06:16:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237291AbjDEKQE (ORCPT ); Wed, 5 Apr 2023 06:16:04 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1060F1737 for ; Wed, 5 Apr 2023 03:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680689722; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=5IwQffGQgbW5+GGPT7GHsPI80Xqx/MpQcxXTIga+7R4=; b=MUbAtwA1+wPs0JHsWLmTEsx24uZDQa/j2oAwCPJG+Yrs6idM6L19lvwDPyI/e6cJw6Jcki Ar9OyUScOOzxKbZy/+SSV6JGg9kP7PJeE8CN59S+oGRYG50Q2kIl37k7vbH4O5VC9cW3GS gBkf7jp/gn2Foib0ywyiVEZLfve4dV8= 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-454-h9N5vcbAOs2WQe-xnr3Yfg-1; Wed, 05 Apr 2023 06:15:19 -0400 X-MC-Unique: h9N5vcbAOs2WQe-xnr3Yfg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6D560185A790; Wed, 5 Apr 2023 10:15:18 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1665F440D6; Wed, 5 Apr 2023 10:15:16 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells To: Jens Axboe cc: dhowells@redhat.com, Christoph Hellwig , Matthew Wilcox , Alexander Viro , Jeff Layton , linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iov_iter: Remove last_offset member MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2933617.1680689716.1@warthog.procyon.org.uk> Date: Wed, 05 Apr 2023 11:15:16 +0100 Message-ID: <2933618.1680689716@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Jens, Can you add this to the block tree? David --- iov_iter: Remove last_offset member With the removal of ITER_PIPE, the last_offset member of struct iov_iter is no longer used, so remove it and un-unionise the remaining member. Signed-off-by: David Howells Reviewed-by: Jeff Layton cc: Jens Axboe cc: Matthew Wilcox cc: Alexander Viro cc: linux-nfs@vger.kernel.org cc: linux-fsdevel@vger.kernel.org cc: linux-mm@kvack.org cc: netdev@vger.kernel.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 74598426edb4..2d8a70cb9b26 100644 --- a/include/linux/uio.h +++ b/include/linux/uio.h @@ -43,10 +43,7 @@ struct iov_iter { bool nofault; bool data_source; bool user_backed; - union { - size_t iov_offset; - int last_offset; - }; + size_t iov_offset; size_t count; union { const struct iovec *iov;