nfsd: allow state with no file to appear in /proc/fs/nfsd/clients/*/states
authorNeilBrown <neilb@suse.de>
Tue, 30 Jan 2024 01:08:27 +0000 (12:08 +1100)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 1 Mar 2024 14:12:20 +0000 (09:12 -0500)
commit39e1be6471a36253b510b1eb891f57c994ba650d
treea47bf7e1bbf3778528112d582e36aef1859ef8ea
parent1ac3629bf012592cb0320e52a1cceb319a05ad17
nfsd: allow state with no file to appear in /proc/fs/nfsd/clients/*/states

Change the "show" functions to show some content even if a file cannot
be found.  This is the case for admin-revoked state.
This is primarily useful for debugging - to ensure states are being
removed eventually.

So change several seq_printf() to seq_puts().  Some of these are needed
to keep checkpatch happy.  Others were done for consistency.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c