From e85c40cde9d47156479a28710becc39becf6fe24 Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Sat, 7 Feb 2004 16:57:57 +0100 Subject: NFSv4: Preparation for the server reboot recovery code. --- include/linux/nfs4.h | 1 + include/linux/nfs_fs.h | 2 ++ include/linux/nfs_xdr.h | 13 +++++++++++++ 3 files changed, 16 insertions(+) (limited to 'include/linux') diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h index f56601a5825d..a6f2d563b605 100644 --- a/include/linux/nfs4.h +++ b/include/linux/nfs4.h @@ -289,6 +289,7 @@ enum { NFSPROC4_CLNT_COMMIT, NFSPROC4_CLNT_OPEN, NFSPROC4_CLNT_OPEN_CONFIRM, + NFSPROC4_CLNT_OPEN_RECLAIM, NFSPROC4_CLNT_CLOSE, NFSPROC4_CLNT_SETATTR, NFSPROC4_CLNT_FSINFO, diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index a005c999ce43..b43412088372 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h @@ -554,6 +554,7 @@ struct nfs4_state { /* nfs4proc.c */ extern int nfs4_proc_setclientid(struct nfs4_client *, u32, unsigned short); extern int nfs4_proc_setclientid_confirm(struct nfs4_client *); +extern int nfs4_open_reclaim(struct nfs4_state_owner *, struct nfs4_state *); extern int nfs4_proc_async_renew(struct nfs4_client *); extern int nfs4_do_close(struct inode *, struct nfs4_state *); @@ -572,6 +573,7 @@ extern void nfs4_put_state_owner(struct nfs4_state_owner *); extern struct nfs4_state * nfs4_get_open_state(struct inode *, struct nfs4_state_owner *); extern void nfs4_put_open_state(struct nfs4_state *); extern void nfs4_increment_seqid(int status, struct nfs4_state_owner *sp); +extern void nfs4_recover_state(struct nfs4_client *); struct nfs4_mount_data; #else diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 244a430f83ef..242b50436d92 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h @@ -133,6 +133,19 @@ struct nfs_open_confirmres { nfs4_stateid stateid; }; +/* + * Arguments to the open_reclaim call. + */ +struct nfs_open_reclaimargs { + struct nfs_fh * fh; + __u64 clientid; + __u32 seqid; + __u32 id; + __u32 share_access; + __u32 claim; + struct nfs4_getattr * f_getattr; +}; + /* * Arguments to the close call. */ -- cgit v1.2.3