From patchwork Fri Sep 22 12:02:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 143592 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5799893vqi; Fri, 22 Sep 2023 11:56:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdIPgqsUIA6wb0C8UznCb6r9cuaU6YCJLWSs8jmuj7/YiCBZwbSx9vu++D1BhLf6z4paB9 X-Received: by 2002:a05:6358:70f:b0:142:efa1:cd33 with SMTP id e15-20020a056358070f00b00142efa1cd33mr571105rwj.6.1695408964071; Fri, 22 Sep 2023 11:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695408964; cv=none; d=google.com; s=arc-20160816; b=L4JNIBv3Z/z9b/bdGfHnFXhHYhKdIeoLbD9o3AqNjsSaoAV0w4Kgt9WVdoYmv6kSme ENWaIfM1FeQlfkoj1IWtAnAB23EYKEQxvSmP/Gldwy9+kI94aVWUu0nMHj13P0hKTdrw JS5LS0rR0NxEmyZQkqloxkUNk4lNfeukPRHeKa6f4mXGXct3rwUjU0sdWmPTk7+3YTCu TxhN3L1VcYvYxFFOlP7JSjwGnao7TJJa7tFDbRqhNI7oThPXoAG2hSl2a3raNX4b86V0 oPxq9yBGvcO2ozslKQWmKUcC+nwXiyxjuCmyKfVm5+9nFkQg8vPunRrUNhywru2syks4 zNDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LZvLwoc939E6B4TZcwRPSf2buY4OlPtMZfRg4M/9mP0=; fh=dzqEI/am1IoNVOMZmTOChre3TckBGjOgtLT35fkBuy0=; b=QfeRGWRvE/9cyZPdSueAsibugftPLE6LjB/YRFP2YjDDl94g8Prvue0TtWHhUiDljv mwSkeOgDveW7yYjh6njsY2q3PzvbwcPfRhmXjhxXjFCGIzf68amT7sc7kOpXFJ6toV2R m0iafnoOtYs/V/YChIEsQsEhw9TMXeGh8Sjz6wDPjVVgiVqqgmVCCQKBmX4Lmgk/a/yS MWwMU+kxZW6XAyXDUl4p7X8Ji+yEQMNF49lgflEU1fP84lKTiQ0CzO/4NEwFlxno6mhM e0sj+8AkfwQNmgzVakfBW5N/TpkII+VvNgyMHB6RfflcGzSiSFoBPHU/QJl+kH7VfXNd XqTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZE1Q66RM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id k6-20020a6568c6000000b0055fd1bfacafsi4342782pgt.755.2023.09.22.11.56.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 11:56:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZE1Q66RM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2EB3083B6F94; Fri, 22 Sep 2023 05:03:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233992AbjIVMDk (ORCPT + 29 others); Fri, 22 Sep 2023 08:03:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233961AbjIVMDe (ORCPT ); Fri, 22 Sep 2023 08:03:34 -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 204C1194 for ; Fri, 22 Sep 2023 05:02:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695384160; 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=ZE1Q66RMltzG/3H2hIqk1DESyqIeQJnYO0cgCR5DraLy4ts/wwfk1Hsh46AlrTl5h8oncg EzogCJvXmiDf173TkG+Tlwnw25a6sBFisCtVrgpIyL1hY2ieHKp5LFf4ZwsVx/N5qh36uR Mk+dU5Ny9LwaN35fJ1rbEHqabiAbIEY= 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 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 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 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 22 Sep 2023 05:03:58 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777765149723222693 X-GMAIL-MSGID: 1777765149723222693 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