diff options
| author | Trond Myklebust <trond.myklebust@fys.uio.no> | 2003-04-08 04:27:37 +0200 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@fys.uio.no> | 2003-04-08 04:27:37 +0200 |
| commit | 45f3fae685e9579979b0dbed506c424688d72881 (patch) | |
| tree | eef8b81a6e74125a4c8b93b6b2fcf0372dc46075 /include | |
| parent | 62175be2bd850d3c2db5065fb3ef4dff3272c068 (diff) | |
Setup code to tear down the NFSv4 state once we're done with a file.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/nfs4.h | 1 | ||||
| -rw-r--r-- | include/linux/nfs_fs.h | 1 | ||||
| -rw-r--r-- | include/linux/nfs_xdr.h | 14 |
3 files changed, 16 insertions, 0 deletions
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. |
