NFSD: Move the RPC program definition for LOCALIO

Clean up: The definitions for the LOCALIO program are not needed by
most files that include linux/nfs.h. Following the convention used
by most other in-kernel RPC program implementations, relocate the
LOCALIO program definitions to a localio-specific header.

Reviewed-by: NeilBrown <neil@brown.name>
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
Link: https://patch.msgid.link/20260728165911.462534-2-cel@kernel.org
Signed-off-by: Chuck Lever <cel@kernel.org>
This commit is contained in:
Chuck Lever 2026-07-28 12:59:07 -04:00
parent ee62dc03a6
commit 7c62f5e526
2 changed files with 8 additions and 7 deletions

View File

@ -15,11 +15,4 @@
#include <uapi/linux/nfs.h>
/* The LOCALIO program is entirely private to Linux and is
* NOT part of the uapi.
*/
#define NFS_LOCALIO_PROGRAM 400122
#define LOCALIOPROC_NULL 0
#define LOCALIOPROC_UUID_IS_LOCAL 1
#endif /* _LINUX_NFS_H */

View File

@ -16,6 +16,14 @@
#include <linux/nfs.h>
#include <net/net_namespace.h>
/*
* The LOCALIO program is entirely private to Linux and is NOT part of
* the uapi.
*/
#define NFS_LOCALIO_PROGRAM 400122
#define LOCALIOPROC_NULL 0
#define LOCALIOPROC_UUID_IS_LOCAL 1
struct nfs_client;
struct nfs_file_localio;