Move the declaration for "struct nfs4_fctx" out from under #ifdef KERNEL

for fstat(1).
This commit is contained in:
Alfred Perlstein 2003-11-15 05:03:15 +00:00
parent 143460168a
commit 42233ecdc1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122736

View File

@ -113,6 +113,20 @@
*/
#define NFS_NFSSTATS 1 /* struct: struct nfsstats */
/*
* File context information for nfsv4. Currently, there is only one
* lockowner for the whole machine "0."
*/
struct nfs4_fctx {
TAILQ_ENTRY(nfs4_fstate) next;
pid_t pid;
uint32_t refcnt;
struct nfs4_lowner *lop;
struct nfsnode *np;
char stateid[NFSX_V4STATEID];
};
#ifdef _KERNEL
#ifdef MALLOC_DECLARE
@ -242,20 +256,6 @@ extern int nfs_debug;
#endif
/*
* File context information for nfsv4. Currently, there is only one
* lockowner for the whole machine "0."
*/
struct nfs4_fctx {
TAILQ_ENTRY(nfs4_fstate) next;
pid_t pid;
uint32_t refcnt;
struct nfs4_lowner *lop;
struct nfsnode *np;
char stateid[NFSX_V4STATEID];
};
vfs_init_t nfs_init;
vfs_uninit_t nfs_uninit;
int nfs_mountroot(struct mount *mp, struct thread *td);