From 45f3fae685e9579979b0dbed506c424688d72881 Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Tue, 8 Apr 2003 04:27:37 +0200 Subject: Setup code to tear down the NFSv4 state once we're done with a file. --- include/linux/nfs4.h | 1 + include/linux/nfs_fs.h | 1 + include/linux/nfs_xdr.h | 14 ++++++++++++++ 3 files changed, 16 insertions(+) (limited to 'include/linux') diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h index 02c77391d6f8..ace7f169b5dc 100644 --- a/include/linux/nfs4.h +++ b/include/linux/nfs4.h @@ -208,6 +208,7 @@ enum { NFSPROC4_CLNT_COMMIT, NFSPROC4_CLNT_OPEN, NFSPROC4_CLNT_OPEN_CONFIRM, + NFSPROC4_CLNT_CLOSE, }; #endif diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 7d53fd8a8710..3d7525998534 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h @@ -491,6 +491,7 @@ struct nfs4_shareowner { /* nfs4proc.c */ extern int nfs4_proc_renew(struct nfs_server *server); +extern int nfs4_do_close(struct inode *inode, struct nfs4_shareowner *sp); /* nfs4renewd.c */ extern int nfs4_init_renewd(struct nfs_server *server); diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 2d1544931139..1b1db6599e6e 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h @@ -131,6 +131,20 @@ struct nfs_open_confirmres { nfs4_stateid stateid; }; +/* + * Arguments to the close call. + */ +struct nfs_closeargs { + struct nfs_fh * fh; + nfs4_stateid stateid; + __u32 seqid; +}; + +struct nfs_closeres { + __u32 status; + nfs4_stateid stateid; +}; + /* * Arguments to the read call. -- cgit v1.2.3