nfs/localio: remove redundant code and simplify LOCALIO enablement
authorMike Snitzer <snitzer@kernel.org>
Sat, 16 Nov 2024 01:41:04 +0000 (20:41 -0500)
committerAnna Schumaker <anna.schumaker@oracle.com>
Tue, 14 Jan 2025 22:05:10 +0000 (17:05 -0500)
commit779a395189c692eec0246e7df63e2a3c0f0c8508
treeadcfd5ea1dd6dcdd87c545c101982d142b07f6ad
parent0dc73141524403f979a9655b4c55d763dbcb2b88
nfs/localio: remove redundant code and simplify LOCALIO enablement

Remove nfs_local_enable and nfs_local_disable, instead use
nfs_localio_enable_client and nfs_localio_disable_client.

Discontinue use of the NFS_CS_LOCAL_IO bit in the nfs_client struct's
cl_flags to reflect that LOCALIO is enabled; instead just test if the
net member of the nfs_uuid_t struct is set.

Also remove NFS_CS_LOCAL_IO.

Lastly, remove trace_nfs_local_enable and trace_nfs_local_disable
because comparable traces are available from nfs_localio.ko.

Suggested-by: NeilBrown <neilb@suse.de>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/client.c
fs/nfs/internal.h
fs/nfs/localio.c
fs/nfs/nfstrace.h
fs/nfs_common/nfslocalio.c
include/linux/nfs_fs_sb.h
include/linux/nfslocalio.h