Message ID | 20230925120309.1731676-6-dhowells@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 50DBBCE7A95 for <linux-mm@archiver.kernel.org>; Mon, 25 Sep 2023 12:03:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 053896B0140; Mon, 25 Sep 2023 08:03:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F1CE66B0143; Mon, 25 Sep 2023 08:03:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D24D76B0144; Mon, 25 Sep 2023 08:03:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id B1BBD6B0140 for <linux-mm@kvack.org>; Mon, 25 Sep 2023 08:03:37 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 939EC4066D for <linux-mm@kvack.org>; Mon, 25 Sep 2023 12:03:37 +0000 (UTC) X-FDA: 81274985274.30.C9FFF82 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf02.hostedemail.com (Postfix) with ESMTP id C8F0D8000E for <linux-mm@kvack.org>; Mon, 25 Sep 2023 12:03:35 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=RWzMWhiD; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf02.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695643415; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=oQjxv/qWpzFGTlwOWGQlwUCcgnofDI2I99l4qJgz63Y=; b=vq3gWZsIFxROrHAV6BT3nTiKKAkIr48zcB4HExBPxI3yViHYT1SWMqGfyPQzOFu2Mnook/ ljSjdTGWXiBt7HHrKCSA8h8S2c/yJ193JCduaWLSVM9GAH11sPR+THPZNamn+hPUzj/YpA CAaOzBieWfHHT5UZGC9+zIkKI30g1FM= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=RWzMWhiD; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf02.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1695643415; a=rsa-sha256; cv=none; b=RDKZNah+Dk7SSqueyBY8QYuobC7YszWCwM5Ka/F0wILD9sD0OVVk7Fh8Up6mNS/bg6KeB/ Br9t7dHbea/Fuo383vZk8DOqNcmZLDPKeoERNFUl8s4JpkY6d4QKpxv5DcEf229GT/Spjb 8H7WqpRuwN2Hlxp0+B51oA83a5Psbs8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695643415; 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=oQjxv/qWpzFGTlwOWGQlwUCcgnofDI2I99l4qJgz63Y=; b=RWzMWhiDR/6Y4XDNzlO3NIhL5wNvFQxGNetqxFkvFe9wOJusFsutXSiV80HavkfnTkTwZS TlKj6keQ1tBq6TM9gBj5NxPcrbeiUwgxUXmbQmuutD+Ux5a/bLVE4Ncoh5xQjNMpplJEKl g8FjtPwGnTJ9VPlCWd8WAAa5DhVdyVE= 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-269-DNPjLMOqM3-blp0lhNFq-g-1; Mon, 25 Sep 2023 08:03:31 -0400 X-MC-Unique: DNPjLMOqM3-blp0lhNFq-g-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (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 EB143101AA42; Mon, 25 Sep 2023 12:03:30 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.216]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4D914711293; Mon, 25 Sep 2023 12:03:29 +0000 (UTC) From: David Howells <dhowells@redhat.com> To: Jens Axboe <axboe@kernel.dk> Cc: David Howells <dhowells@redhat.com>, Al Viro <viro@zeniv.linux.org.uk>, Linus Torvalds <torvalds@linux-foundation.org>, Christoph Hellwig <hch@lst.de>, Christian Brauner <christian@brauner.io>, David Laight <David.Laight@ACULAB.COM>, Matthew Wilcox <willy@infradead.org>, Jeff Layton <jlayton@kernel.org>, 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 05/12] iov_iter: Renumber ITER_* constants Date: Mon, 25 Sep 2023 13:03:02 +0100 Message-ID: <20230925120309.1731676-6-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.9 X-Rspamd-Queue-Id: C8F0D8000E X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: bc5fwu1inp8z3hqbzuuccpeb9e3jhy3u X-HE-Tag: 1695643415-53081 X-HE-Meta: U2FsdGVkX184aRVaQWA5gzFRxPHlWMzc3QgdPjLFOZwoLiV2Wy3m2gFJ577UtZu8ws2E1ykR5VsVMseR9uK1xX7/PREj1BZv/11r5omxyonaH8Lq6zDYYWA/Q5Ce7rfuQkOeYjNVkuOLSm+F+n3cPiXGj05XDNCJVM97RfLNbLNCHr8680ssOiuXwhB1cTzT8Caw8mc38KRmIxb7kAXfrsr50ZLwS1NWiQab82PE9UOmzQCMOgptbMs07pVnv4k4tLGHuEgON2ncBGyYblAAvuA7OpBDW6rggIO7MCj19EtTf1hJkINrvbaqpsv5R8pbHjmYmRc8iFVqrxhLM936AkoqMclfeyJ/2QixXXRTjwglwCL1FneqyZNl1KVJSk4i2a3wnwmylYvduS5xAOCgdeIWAuQZYFm/6vwI+TV6PBetFd1iwHtmnVY4/+D12RxYfTTP0oibTqBdqi3AtfIhdHRnb874lPe8SOsqMh9ehmau/NSplUJIBNRyYcrIFvSI8zE9nuEDk9oJPHQYfjnZls6dUroWBD5xgoIlpGODrEuESU5qM6Y6y1jfsS9OMPNr+/dz9sM8kZASxFxtqlQh/EUKz8gvA6quFyBpnsoZsdw+OQbl7eqkQozetRHAksPimUI5ZoXuuizrmBLwodVeXqS2ehhe5X/HRoX8kNQZMLiJvlDNOt8vQ1wNGAgSiHXGcmlxRKMoeYFqLynrt5U6Juq12SgJivwq+EI9KxJBfmrRLiiAUNPzO+I6KMr90XsM1xatB2ThiNdt04gGmZsp9DuNsY0OMO09/JgXL1GghgVulPKHk0L2omV7VSXT0JNdIWfO/tmema+a0Ow7mlB06kplX/H7AFort6/uS+uwE7aeWw6oHa7mc8GxoU86KmTUpTIRXFN0qxmm9nLehQZ2gWvl8emuW/ROdiYRoFEX2LwnAxSBt1LusY1XEzAiUMizR5NBZMsNJ2LjrgrSYno Uzvb3zEW zRZRxO5EQWz2xOMDzsEc4KZzv0IHyDT1UPdgoGV8QcGhJOsoXfe60DhH4XSbB05VEE+LDgttX38DRJESHRWTFGU7Ta6dZBnxQJ3rQQ5OFukKUSCB/+AaNfSLu/dNim44vtKMeC7/cJWUeK6z45iNRdWCqz4LT98C2eACmCMmgLrRh1mWya/y9GxIQBMmOCHauKMwNSVd/Rj+fiSEe/ndpNQNAR2kKoc5HyrWYq5AK+APXhbcy9IBSBn/7dGOxRR8vcTL+bs9WsMggaM59TxuGx83EAh5h7BgD0v5TYcnpPuU5SsZV7Ud8yBTDxu2FqtP0efpswN/89dV/jtIp9Y1Ar8O0LtRJ984GzuXJqadnVO3AW1hagfMVFdPXfujvmzm9tbUV72Y9boE3hjr3lMGE+2qR2bo/c/G4+q0ZKbrD8A9KciKOL2ViXN8xHgp3Hvwaut4ejuEexuJDOWCWSyLP9ZT6v9a6g9jbUdtKKg9nD5Hg+JaSKyCj7mgVmYIIV3PoOXf5iJrWJ6t1HgnMe8OJIUXSQo2L+JECJchX3aW7bNSGQzsgFnsyzptwLW4SltFalRgAUjvWUd+Jlxo= 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: <linux-mm.kvack.org> |
Series |
iov_iter: Convert the iterator macros into inline funcs
|
expand
|
diff --git a/include/linux/uio.h b/include/linux/uio.h index 2000e42a6586..bef8e56aa45c 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
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 <dhowells@redhat.com> cc: Alexander Viro <viro@zeniv.linux.org.uk> cc: Jens Axboe <axboe@kernel.dk> cc: Christoph Hellwig <hch@lst.de> cc: Christian Brauner <christian@brauner.io> cc: Matthew Wilcox <willy@infradead.org> cc: Linus Torvalds <torvalds@linux-foundation.org> cc: David Laight <David.Laight@ACULAB.COM> 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(-)