Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1699161rdb; Wed, 20 Sep 2023 17:45:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGvSJbI0LCtjy4hmzmAgZU/zbR4Egv+PyYaLKQa0gMihz2gWLis9dwJ2p1hmKWdMuaEV2BH X-Received: by 2002:a17:902:e804:b0:1c3:8031:1d9e with SMTP id u4-20020a170902e80400b001c380311d9emr4328725plg.15.1695257159305; Wed, 20 Sep 2023 17:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695257159; cv=none; d=google.com; s=arc-20160816; b=iggiz/fxH1HR3n9Vlk8njNkTikLi0vwSLTT/LOCl98MQacXPDbI26cz7k2RYhEDIA7 iZtnUWCo+fCUjB0aPQ5/q/hQctbqD1R0Pa1dw8zlDYpQFzmSikauExDc6GT9kJ0dREq0 c7DYTdZrQMWv4jBmuQ708B0Cf6miCYup8ZFiXZq2rINhUMbG3n2I70VCZK+XXXOMEpd4 cu/iW44y8CC631AnPFaQ6CI55dCjnE0eYyJiOWeWsHhPsfuJjHhhWlsz2o62GI88zaM/ VbJUNpDxALJPmLU/ukMfNhcHWK2m1gxJXDZC/aVtkv3aNDTg3DOUdBogiO4onNwOxKmq JK0w== 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=437kiFAHLHJfEBaWwZrq8WSevs6s9dyVAFCFY8Y8ee4=; fh=dzqEI/am1IoNVOMZmTOChre3TckBGjOgtLT35fkBuy0=; b=XxwfmGbK87BozGfCVy+ZdugW4K/2mC8DDxr/7mqxJDhoYFJvYTR3iVRNvJ+rUxAD10 bARqOQV+ki4Oa+ETXQMQpXhGIHWptWYiNR6VFfKytjWpSJ/Y0FnEkJiQ5qEZvy/7uSQD G07V42KKk8SXNHgVFhmeUb22RUpua2XmLQzDEMSjYcu5Gt1emTfeeaJGoXAQCE8OyBKY Qtsl61DaqVI7PfwHCFBH/WIsCwT33aGmqBYYcQEbdWCoEp3fx0kv0Dql1Ru1YzRSldn/ qpjRrcFfdMV8I919adq0bKd0L6GEYcWo2pL0Ja0WhxXFBkqeasy9FsjvssAVeXfOvHhU LcaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cqHJMLe0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id q5-20020a17090311c500b001c3fa95ca18si268421plh.333.2023.09.20.17.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 17:45:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cqHJMLe0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 5633D82A68B9; Wed, 20 Sep 2023 15:24:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229733AbjITWYd (ORCPT + 99 others); Wed, 20 Sep 2023 18:24:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbjITWYX (ORCPT ); Wed, 20 Sep 2023 18:24:23 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC132F0 for ; Wed, 20 Sep 2023 15:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695248570; 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=437kiFAHLHJfEBaWwZrq8WSevs6s9dyVAFCFY8Y8ee4=; b=cqHJMLe01KjzaRrhvZ4mJcdAA4fbAWNj2DMd5IHe6KHpTg9qS7T+MdCf3WLcGqy170rd/l oY7OyooL8mfi38L0u8X+rx5s8ZFCKA4OmKscJ2Hb9PHf24AoqBQlCZy3gVAW4dMmapQgw/ MSS9twYLYtFr9E130kRQHwxjfw+Cyu0= 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-453-GGmAFyesMt6gNbnmBSrgrA-1; Wed, 20 Sep 2023 18:22:47 -0400 X-MC-Unique: GGmAFyesMt6gNbnmBSrgrA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (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 95FA1811E7D; Wed, 20 Sep 2023 22:22:46 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.216]) by smtp.corp.redhat.com (Postfix) with ESMTP id F228340C2064; Wed, 20 Sep 2023 22:22:44 +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 v5 03/11] iov_iter: Renumber ITER_* constants Date: Wed, 20 Sep 2023 23:22:23 +0100 Message-ID: <20230920222231.686275-4-dhowells@redhat.com> In-Reply-To: <20230920222231.686275-1-dhowells@redhat.com> References: <20230920222231.686275-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 20 Sep 2023 15:24:58 -0700 (PDT) Renumber the ITER_* iterator-type constants to put things in the same order as in the iteration functions and to group user-backed iterators at the bottom. 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/uio.h b/include/linux/uio.h index 42bce38a8e87..d1801c46e89e 100644 --- a/include/linux/uio.h +++ b/include/linux/uio.h @@ -21,12 +21,12 @@ struct kvec { enum iter_type { /* iter types */ + ITER_UBUF, ITER_IOVEC, - ITER_KVEC, ITER_BVEC, + ITER_KVEC, ITER_XARRAY, ITER_DISCARD, - ITER_UBUF, }; #define ITER_SOURCE 1 // == WRITE