xref: /linux/fs/nfsd/current_stateid.h (revision 57832e7bd85a450e64dba19933d83b6577632066)
18b70484cSTigran Mkrtchyan #ifndef _NFSD4_CURRENT_STATE_H
28b70484cSTigran Mkrtchyan #define _NFSD4_CURRENT_STATE_H
38b70484cSTigran Mkrtchyan 
48b70484cSTigran Mkrtchyan #include "state.h"
58b70484cSTigran Mkrtchyan #include "xdr4.h"
68b70484cSTigran Mkrtchyan 
737c593c5STigran Mkrtchyan extern void clear_current_stateid(struct nfsd4_compound_state *cstate);
862cd4a59STigran Mkrtchyan /*
962cd4a59STigran Mkrtchyan  * functions to set current state id
1062cd4a59STigran Mkrtchyan  */
11b60e9859SChristoph Hellwig extern void nfsd4_set_opendowngradestateid(struct nfsd4_compound_state *,
12b60e9859SChristoph Hellwig 		union nfsd4_op_u *);
13b60e9859SChristoph Hellwig extern void nfsd4_set_openstateid(struct nfsd4_compound_state *,
14b60e9859SChristoph Hellwig 		union nfsd4_op_u *);
15b60e9859SChristoph Hellwig extern void nfsd4_set_lockstateid(struct nfsd4_compound_state *,
16b60e9859SChristoph Hellwig 		union nfsd4_op_u *);
17b60e9859SChristoph Hellwig extern void nfsd4_set_closestateid(struct nfsd4_compound_state *,
18b60e9859SChristoph Hellwig 		union nfsd4_op_u *);
198b70484cSTigran Mkrtchyan 
2062cd4a59STigran Mkrtchyan /*
2162cd4a59STigran Mkrtchyan  * functions to consume current state id
2262cd4a59STigran Mkrtchyan  */
23*57832e7bSChristoph Hellwig extern void nfsd4_get_opendowngradestateid(struct nfsd4_compound_state *,
24*57832e7bSChristoph Hellwig 		union nfsd4_op_u *);
25*57832e7bSChristoph Hellwig extern void nfsd4_get_delegreturnstateid(struct nfsd4_compound_state *,
26*57832e7bSChristoph Hellwig 		union nfsd4_op_u *);
27*57832e7bSChristoph Hellwig extern void nfsd4_get_freestateid(struct nfsd4_compound_state *,
28*57832e7bSChristoph Hellwig 		union nfsd4_op_u *);
29*57832e7bSChristoph Hellwig extern void nfsd4_get_setattrstateid(struct nfsd4_compound_state *,
30*57832e7bSChristoph Hellwig 		union nfsd4_op_u *);
31*57832e7bSChristoph Hellwig extern void nfsd4_get_closestateid(struct nfsd4_compound_state *,
32*57832e7bSChristoph Hellwig 		union nfsd4_op_u *);
33*57832e7bSChristoph Hellwig extern void nfsd4_get_lockustateid(struct nfsd4_compound_state *,
34*57832e7bSChristoph Hellwig 		union nfsd4_op_u *);
35*57832e7bSChristoph Hellwig extern void nfsd4_get_readstateid(struct nfsd4_compound_state *,
36*57832e7bSChristoph Hellwig 		union nfsd4_op_u *);
37*57832e7bSChristoph Hellwig extern void nfsd4_get_writestateid(struct nfsd4_compound_state *,
38*57832e7bSChristoph Hellwig 		union nfsd4_op_u *);
3962cd4a59STigran Mkrtchyan 
408b70484cSTigran Mkrtchyan #endif   /* _NFSD4_CURRENT_STATE_H */
41