From patchwork Wed Apr 5 10:15:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 13201544 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 74971C7619A for ; Wed, 5 Apr 2023 10:15:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D22BF6B0071; Wed, 5 Apr 2023 06:15:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CABFB6B0072; Wed, 5 Apr 2023 06:15:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AFE126B0074; Wed, 5 Apr 2023 06:15:30 -0400 (EDT) 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 9BDB06B0071 for ; Wed, 5 Apr 2023 06:15:30 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 5388D120FB3 for ; Wed, 5 Apr 2023 10:15:30 +0000 (UTC) X-FDA: 80646930420.22.AA4046B Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf09.hostedemail.com (Postfix) with ESMTP id 867FE140016 for ; Wed, 5 Apr 2023 10:15:27 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=H+OTqTYE; spf=pass (imf09.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1680689728; a=rsa-sha256; cv=none; b=SLB//o9ZQfpq14zG087DSbu1cK4VowGpVu7BYRKergWIhm3D7ED3UoCvAgp6bdorPo68So VMAEAGBsc1MtSI88IMmh06bwx3+aBveBynl1XDE4xgom+90A9jNdEf0WuyhQgLAXV/izuP +P/ixqSW1e661xXjv2cDZVibA1PT9m8= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=H+OTqTYE; spf=pass (imf09.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1680689728; 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-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=5IwQffGQgbW5+GGPT7GHsPI80Xqx/MpQcxXTIga+7R4=; b=ns1Coz500cv3A5dMZZ/VETlmKuaPyhqwFebQ/gmG0a8dbWxq/FB0vrw5xXl3Ha03Atc9mm DfPbFb+eEEgPrzYF8TiCn3szSYnI+6yYD7hYAai0LbHHiD83MpT6CTYT+sdxB8k4LKEusy D9geP5mDMiKgza60Pxgf3qu/G8WhoRA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680689726; 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=H+OTqTYEnNaDZV9BuCzbbqWdhyzw9I36//uE5PRpc2e8mPTQgBgy8oIeBi/s0OkXR3EBr7 iIZ/qU/fMP7Q5HzylO1Y6h56xMz9JAMVcTGXb6JPZeT+kF8iqVPk6KkMJSJmi+E3fHQ1hl BYItnx9PxJ54kYEQT3Xstx8TRsAwcDM= 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-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-Rspam-User: X-Rspamd-Queue-Id: 867FE140016 X-Rspamd-Server: rspam01 X-Stat-Signature: 6yjofjqhutarcng86o7gtknqaqbz5ykg X-HE-Tag: 1680689727-156615 X-HE-Meta: U2FsdGVkX18hdobMrN5Bq0HrADWd3yOM/ruWSzzLvUwnj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/f5OHBdx3fJ5V3qcetd2RRdJqwrU5E2GVWig4ByArYTeuMxnou6jUFfq1kVbAdRGjol+evwUiwCPfS5v3J+ZdHJoztxdv4V6i3ond2DXT7+kyy5wNaO3mlnrgpXDfCLV27ehzmOusBywHo6QMSYnqnZ3N7qKjCdovz4kmfr7ExHiIhNLDGMFitlVXxVaDLLZ+lxcGJA3kXUSziVeGqw8gM5F/NSxGKb6P7eeATXFkXbnMavKSCpCgiO9uhlujpanUuLNMzHuFmBj1Xkgo6cAH5fMNCdDNIhC7W37jLQjFHVryYmzgMhf4D/wlrv5yQFI4wml5JC3WjPPQkJyM1tKf5EL16e9xOBm6 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: 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;