diff options
author | David Howells <dhowells@redhat.com> | 2024-07-09 10:45:46 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-09-05 11:00:41 +0200 |
commit | 51e9a86a4f75c6dc8531407b2ab2ccc4ad137e5a (patch) | |
tree | 48e8bb62c1fe0ef0554e4b0aec0b54426bb2c888 /include/trace | |
parent | netfs: Move max_len/max_nr_segs from netfs_io_subrequest to netfs_io_stream (diff) | |
download | linux-51e9a86a4f75c6dc8531407b2ab2ccc4ad137e5a.tar.xz linux-51e9a86a4f75c6dc8531407b2ab2ccc4ad137e5a.zip |
netfs: Reserve netfs_sreq_source 0 as unset/unknown
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
Link: https://lore.kernel.org/r/20240814203850.2240469-9-dhowells@redhat.com/ # v2
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/netfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
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") \ |