diff options
| author | Chuck Lever <cel@kernel.org> | 2026-08-18 10:00:34 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-10-04 21:15:29 -0400 |
| commit | dc5af32be2cb86bbe2ee207884e5fb2ef719ab48 (patch) | |
| tree | bd72e5d93447aa06d8214bc94672e05f8798a27a | |
| parent | c5c238048318da90abd8ba52a0f74d335cca28b2 (diff) | |
NFSD: Include <linux/nfs_fh.h> where struct nfs_fh is used
struct nfsd4_copy embeds a struct nfs_fh, and nlm_fopen() reads the
size and data fields of one. Neither fs/nfsd/xdr4.h nor
fs/nfsd/lockd.c includes the header that defines the type; both
reach it by way of nfsd.h, which pulls in <linux/nfs.h>.
Add the direct include to both files, so nfsd.h can later drop the
<linux/nfs.h> it carries for no use of its own.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260818140035.12740-2-cel@kernel.org
Signed-off-by: Chuck Lever <cel@kernel.org>
| -rw-r--r-- | fs/nfsd/lockd.c | 1 | ||||
| -rw-r--r-- | fs/nfsd/xdr4.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfsd/lockd.c b/fs/nfsd/lockd.c index 5ec0f5456063..f24e45dc37a0 100644 --- a/fs/nfsd/lockd.c +++ b/fs/nfsd/lockd.c @@ -9,6 +9,7 @@ #include <linux/file.h> #include <linux/lockd/bind.h> +#include <linux/nfs_fh.h> #include "nfsd.h" #include "nfserr.h" #include "vfs.h" diff --git a/fs/nfsd/xdr4.h b/fs/nfsd/xdr4.h index 7bbb375874ef..b841bc462dac 100644 --- a/fs/nfsd/xdr4.h +++ b/fs/nfsd/xdr4.h @@ -37,6 +37,8 @@ #ifndef _LINUX_NFSD_XDR4_H #define _LINUX_NFSD_XDR4_H +#include <linux/nfs_fh.h> + #include "state.h" #include "vfs.h" |
