]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netfs: Renumber the NETFS_RREQ_* flags to make traces easier to read
authorDavid Howells <dhowells@redhat.com>
Tue, 1 Jul 2025 16:38:47 +0000 (17:38 +0100)
committerChristian Brauner <brauner@kernel.org>
Tue, 1 Jul 2025 20:37:14 +0000 (22:37 +0200)
commit4e32541076833f5ce2e23523c9faa25f7b2cc96f
treef16e5f0b56c15aba7850fd4ca9ff2f4ca5183f75
parent5e1e6ec2e346c0850f304c31abdef4158007474e
netfs: Renumber the NETFS_RREQ_* flags to make traces easier to read

Renumber the NETFS_RREQ_* flags to put the most useful status bits in the
bottom nibble - and therefore the last hex digit in the trace output -
making it easier to grasp the state at a glance.

In particular, put the IN_PROGRESS flag in bit 0 and ALL_QUEUED at bit 1.

Also make the flags field in /proc/fs/netfs/requests larger to accommodate
all the flags.

Also make the flags field in the netfs_sreq tracepoint larger to
accommodate all the NETFS_SREQ_* flags.

Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/20250701163852.2171681-13-dhowells@redhat.com
Reviewed-by: Paulo Alcantara <pc@manguebit.org>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/netfs/main.c
include/linux/netfs.h
include/trace/events/netfs.h