Message ID | 20240814203850.2240469-9-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 F2A63C52D7F for <linux-mm@archiver.kernel.org>; Wed, 14 Aug 2024 20:40:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 85E246B009F; Wed, 14 Aug 2024 16:40:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 80EBD6B00A0; Wed, 14 Aug 2024 16:40:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6AEDC6B00A1; Wed, 14 Aug 2024 16:40:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 4E9596B009F for <linux-mm@kvack.org>; Wed, 14 Aug 2024 16:40:15 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 0AE6BA0EF4 for <linux-mm@kvack.org>; Wed, 14 Aug 2024 20:40:15 +0000 (UTC) X-FDA: 82452018390.24.C8E0360 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf15.hostedemail.com (Postfix) with ESMTP id 46DB7A0009 for <linux-mm@kvack.org>; Wed, 14 Aug 2024 20:40:13 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=gyAR4Sub; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf15.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=1723667960; a=rsa-sha256; cv=none; b=PAvaHh4soReY2942o6lxmaKnQtsLn+rxCD9htkrNIQXNBtKqTkNa82GkHisp1a/d9rIZ8c nNuDmr70DlfWXJu7pOgdpKNSZ+C2PdIEcGZBICre+iYdEondGXMZo6z3JHjeR9R8mrf4/3 84/9/23qs842jfVBja6urRnON1XSTEw= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=gyAR4Sub; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf15.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=1723667960; 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=5ILxAt7NrlTMl997Ic8qQaZjEltu0gIkdcefwxoaQ6I=; b=i2s3UvBx6IvFCH8fbRKRx/djP7ArbJ1YCxMhgMAnaSb+O8qVN0ZrAvhmwgXEtb7cTP3Ji/ 1OHWmZNIgIZ/CLkxX1qZMjZn50p7iVrCfZxAniavk8qYkJfnfG20mzjLB9DHABNShKmEeu 9bnt/hjZ8t6dKKLyydAIa6u7TDEK9fg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1723668012; 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=5ILxAt7NrlTMl997Ic8qQaZjEltu0gIkdcefwxoaQ6I=; b=gyAR4SubZfBZnAjycN5SqOKk9EYYPwHn9QPXZt+cnEzViVY8gAFk1QP/VqR6jJWSN0Bmaf KGVhpnkDz013uQLZ8whUbKHsRHYLX72BVp8+RpqL+2W1d1mthOfhAWKN69KG37OTeac9FT ak0wCEAgYecaSLJQ1pRC5/uPR+MyyuE= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-533-TmxqWq9ANiW1IsbBOq97nA-1; Wed, 14 Aug 2024 16:40:07 -0400 X-MC-Unique: TmxqWq9ANiW1IsbBOq97nA-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 75755195609E; Wed, 14 Aug 2024 20:40:04 +0000 (UTC) Received: from warthog.procyon.org.uk.com (unknown [10.42.28.30]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 917E219560A3; Wed, 14 Aug 2024 20:39:58 +0000 (UTC) From: David Howells <dhowells@redhat.com> To: Christian Brauner <christian@brauner.io>, Steve French <smfrench@gmail.com>, Matthew Wilcox <willy@infradead.org> Cc: David Howells <dhowells@redhat.com>, Jeff Layton <jlayton@kernel.org>, Gao Xiang <hsiangkao@linux.alibaba.com>, Dominique Martinet <asmadeus@codewreck.org>, Marc Dionne <marc.dionne@auristor.com>, Paulo Alcantara <pc@manguebit.com>, Shyam Prasad N <sprasad@microsoft.com>, Tom Talpey <tom@talpey.com>, Eric Van Hensbergen <ericvh@kernel.org>, Ilya Dryomov <idryomov@gmail.com>, netfs@lists.linux.dev, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs@lists.linux.dev, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 08/25] netfs: Reserve netfs_sreq_source 0 as unset/unknown Date: Wed, 14 Aug 2024 21:38:28 +0100 Message-ID: <20240814203850.2240469-9-dhowells@redhat.com> In-Reply-To: <20240814203850.2240469-1-dhowells@redhat.com> References: <20240814203850.2240469-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Rspamd-Queue-Id: 46DB7A0009 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: 3jgue8mauyhf5km5hx6q7gsqr4xsrzcm X-HE-Tag: 1723668013-248541 X-HE-Meta: U2FsdGVkX1/2aohph0nLcxLkQjGjW5Eko6I2zFa7/xxn59Uzt0R9LyG9jQ2xQobTLEth7OqKauj0ttPUVYSHZmc39ShqSH7dBSGZVM6KDU1WmrjdDDdM1O1ahHtKn1hM7Mg62hTvrkPzU3mqideEKqdR52dM3q7r0A+f2JQIl2yyzSleqQpnk35YoIrgYEsXmBmaylT+APgbxu9+Eu77bs/Fj8PdM51qgpFF1I7+ww4z5jP8o7c/8NTmyuEkBO52rRR34SZBiuFbcRMkHywI0zzYFTzkF9tMmJerrGDqqacNWfjT877RrWcgnwf8px450UdHO1myr0q4Nh2XUTdNatpvNV0BsFZ1ZIkOHSbfswoqyKuofNCZpx+XA71hbI0bG1GkhYN0MYJXezsF334CVvOh44tkdtNPQEPIRKdzV2Kk+lKfXKJx669VSGCqxyHjR2BZPbSvyLQ9WmIJh3Q/kTae6o0kvJ14vu+DngALtc3gS180VtNmuV4Ew3RwKuHSN3YCctqaBl4VVrwmPPdjDbUmjBbZHuWUnHNVqotSyCNECRF9pl6cLZ5eSR7j+mbmB/TCELhlrIb6hREsJJYwAWV6HXG2lq0guyRwGxD9Nz0X23Trz2vu2TOSqzp+778rgbjvol1V++a+ta5ndeebZTACfbNylPXKkUGw2XdmFksv6jvZOGloOtI+XwQ4pgU37UtecWrwQ12m7XF1CMrckveax0XzqaAPlyVfp6H0iKIyNYB1OQExyPNUpkLe7WEM/5/JyOrqBOYuCeJ9f4wdOM8tkXuwgjp7vwrV65BD4zjKjIHjzM5tJHyLHsL+d+ubzbsBmQKPlMgr/dwcB/yNcz/rRcNAvT6yShm/i7AwXwRedaWqskcCaM8pjtHEjoFN3AO8DTNtegTiAdAuWz84lqAoZPpyjw62gufRhPxMIk35j2mCu5ADZiB2oEBswULpZDQYHUtvbRShmVoetnp nUODOTl+ OkGXqRc14XfUnyyz32n8dHmiaJ8GacbFTWV+qdI/rCgZPd1huBxVqyLg7PeV7fMzx4zSjDm1ZaW/On4oIxk9Zq2VOHp5nlOYGln0Gr/Vy52ZivJiBSpRl+P0AQTO2RHiXJa8/xHatKHycHswX2acUtv3JNS/G2QvJVtR2HeqxUh4akzKRWeRD9LEqsHwJsbA+yeuOnnpU2f61+nS0Os+yfBVosyMseMxq2KtUOH4XQq8xfmPNY6lbj0hNnst2n+orXDn2b474b556hD6rPPkvTLJY7kttIaNU8Bdcrk/NsDhm6dMwFM7wr3gHZR8vWRX1jPuz7e65I/OpG8rppqXlRr/YS5GPMBZCGmEb9Pc1LxZM3XzUmutnlxyaao0k6mo7wMz5m4LuuMMlP9ReriVCKKzpag== 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
netfs: Read/write improvements
|
expand
|
diff --git a/include/linux/netfs.h b/include/linux/netfs.h index 11fa86640d91..16834751e646 100644 --- a/include/linux/netfs.h +++ b/include/linux/netfs.h @@ -43,6 +43,7 @@ static inline void folio_start_private_2(struct folio *folio) #define NETFS_BUF_PAGECACHE_MARK XA_MARK_1 /* - Page needs wb/dirty flag wrangling */ enum netfs_io_source { + NETFS_SOURCE_UNKNOWN, NETFS_FILL_WITH_ZEROES, NETFS_DOWNLOAD_FROM_SERVER, NETFS_READ_FROM_CACHE, diff --git a/include/trace/events/netfs.h b/include/trace/events/netfs.h index a4fd5dea52f4..f4105b8e5894 100644 --- a/include/trace/events/netfs.h +++ b/include/trace/events/netfs.h @@ -60,6 +60,7 @@ E_(netfs_rreq_trace_write_done, "WR-DONE") #define netfs_sreq_sources \ + EM(NETFS_SOURCE_UNKNOWN, "----") \ EM(NETFS_FILL_WITH_ZEROES, "ZERO") \ EM(NETFS_DOWNLOAD_FROM_SERVER, "DOWN") \ EM(NETFS_READ_FROM_CACHE, "READ") \
Reserve the 0-valued netfs_sreq_source to mean unset or unknown so that it can be seen in the trace as such rather than appearing as download-from-server when it's going to get switched to something else. Signed-off-by: David Howells <dhowells@redhat.com> cc: Jeff Layton <jlayton@kernel.org> cc: netfs@lists.linux.dev cc: linux-fsdevel@vger.kernel.org --- include/linux/netfs.h | 1 + include/trace/events/netfs.h | 1 + 2 files changed, 2 insertions(+)