diff --git a/fs/nfsd/nfs2acl.c b/fs/nfsd/nfs2acl.c index 0673e83b6666..eada1ab51415 100644 --- a/fs/nfsd/nfs2acl.c +++ b/fs/nfsd/nfs2acl.c @@ -10,8 +10,8 @@ /* FIXME: nfsacl.h is a broken header */ #include #include -#include #include "cache.h" +#include "xdr.h" #include "xdr3.h" #include "vfs.h" diff --git a/fs/nfsd/nfs3xdr.c b/fs/nfsd/nfs3xdr.c index a14e829e1c41..f0895f5e32f6 100644 --- a/fs/nfsd/nfs3xdr.c +++ b/fs/nfsd/nfs3xdr.c @@ -10,6 +10,8 @@ #include #include #include + +#include "nfsd.h" #include "xdr3.h" #include "auth.h" #include "netns.h" diff --git a/fs/nfsd/nfsfh.h b/fs/nfsd/nfsfh.h index 7d8e3f015307..aa3ff3086406 100644 --- a/fs/nfsd/nfsfh.h +++ b/fs/nfsd/nfsfh.h @@ -111,6 +111,11 @@ typedef struct svc_fh { struct kstat fh_post_attr; /* full attrs after operation */ u64 fh_post_change; /* nfsv4 change; see above */ } svc_fh; + +struct nfsd_fhandle { + struct svc_fh fh; +}; + #define NFSD4_FH_FOREIGN (1<<0) #define SET_FH_FLAG(c, f) ((c)->fh_flags |= (f)) #define HAS_FH_FLAG(c, f) ((c)->fh_flags & (f)) diff --git a/fs/nfsd/xdr.h b/fs/nfsd/xdr.h index 52660b9f8dde..a2a3b2f58a1d 100644 --- a/fs/nfsd/xdr.h +++ b/fs/nfsd/xdr.h @@ -5,13 +5,8 @@ #define _LINUX_NFSD_XDR_H #include -#include "nfsd.h" -#include "nfsfh.h" -#include "vfs.h" -struct nfsd_fhandle { - struct svc_fh fh; -}; +#include "vfs.h" struct nfsd_sattrargs { struct svc_fh fh; diff --git a/fs/nfsd/xdr3.h b/fs/nfsd/xdr3.h index cad875d14231..22272695e451 100644 --- a/fs/nfsd/xdr3.h +++ b/fs/nfsd/xdr3.h @@ -8,7 +8,8 @@ #ifndef _LINUX_NFSD_XDR3_H #define _LINUX_NFSD_XDR3_H -#include "xdr.h" +#include + #include "vfs.h" struct nfsd3_sattrargs {