Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1361522rdh; Mon, 25 Sep 2023 10:16:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH56Y9IoCFoCGoJ9t3tI5ObS0gLK3g5v7lnE3ZAxDyIt+k/nRVvSZaKexZohc1cvJlxMUWM X-Received: by 2002:a05:6a00:194c:b0:68e:36bc:194a with SMTP id s12-20020a056a00194c00b0068e36bc194amr9041817pfk.15.1695662183158; Mon, 25 Sep 2023 10:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695662183; cv=none; d=google.com; s=arc-20160816; b=SJicQThKWBbKIiRERl0b+uUxYXIhOFIhkSVOmj1G7gyCLKgZs6UuzeQd0ZbK5At1we /W8X1Wc6QDs1Y9duR4q8VNuB5IcI/T8vUXJwSHlAUULvJUL9luoxjehFoYJT0V0S9Ami G88oqJrxBGpUr9tYs/vUfrtTYNAp6iUR7OqGNcYvVwTxI62LrA8gOz1bYGkcwExfWek3 vacYVY5dvBP2c/ItpCG/OBmlSLA52BQ7JHXCnUdpH2CpKlakE+bMpcUYWgpOTmK5qCge xNurSG5TboDdjjMBHSPKmSA2h38AdeEgZdRpQnlUDKZgMUWjqBJCR0lN90+mekOQfZIn IptA== 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=S992O6pugrxDfStNx43cmQ4c5IXUF9YArf45otPHZBHpv+9vQ2u1Ax17bjG0/6U4mq Q5PCJiKazra0/RujSqvHBR6xglTcriTNrN1AgyABSJVXkimkGYtw3I9U1KF50BrJHNp5 /n75/WxSkzl06cSymriNrtGXIVjKMvTrdte6bX9DAKteJbyucPfbgXGgV3sEo/mwjNZ5 ETB6f0MRlSJPZiVf5l2eBiUEZEkLde+NovZLCtreHzyZty70YEMg9IzZtCFi/Zr/1hdJ mBERKUuHUea1c1YFAOGrxrqWfwyGm44TmAHKaLvPD0hmLKbR3YKx/uf6/7GN4z5qaYuK naOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b0zXVUb+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id m14-20020a056a00080e00b0069024c6a9a8si10981791pfk.389.2023.09.25.10.16.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 10:16:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b0zXVUb+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 34F3F8211497; Mon, 25 Sep 2023 05:04:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230470AbjIYMEI (ORCPT + 99 others); Mon, 25 Sep 2023 08:04:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230113AbjIYMEH (ORCPT ); Mon, 25 Sep 2023 08:04:07 -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 CD264A3 for ; Mon, 25 Sep 2023 05:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695643403; 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=b0zXVUb+65Kuha2teQXxQOqLyED4k2Iht9J33gbtigIrpUYPT2yl5w3DlnfUtHvmm0cOMd 2mNC+8ONqB7Qf0U+vyFXe5sbwjGMNgVojEG62xacWrvUGKcFyiIPW2crypwbGuPjhadMJE sNj1KrItHfzFNaD/ktE9GyPK0FjKCCM= 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 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 25 Sep 2023 05:04:22 -0700 (PDT) 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