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 */ 11*b60e9859SChristoph Hellwig extern void nfsd4_set_opendowngradestateid(struct nfsd4_compound_state *, 12*b60e9859SChristoph Hellwig union nfsd4_op_u *); 13*b60e9859SChristoph Hellwig extern void nfsd4_set_openstateid(struct nfsd4_compound_state *, 14*b60e9859SChristoph Hellwig union nfsd4_op_u *); 15*b60e9859SChristoph Hellwig extern void nfsd4_set_lockstateid(struct nfsd4_compound_state *, 16*b60e9859SChristoph Hellwig union nfsd4_op_u *); 17*b60e9859SChristoph Hellwig extern void nfsd4_set_closestateid(struct nfsd4_compound_state *, 18*b60e9859SChristoph Hellwig union nfsd4_op_u *); 198b70484cSTigran Mkrtchyan 2062cd4a59STigran Mkrtchyan /* 2162cd4a59STigran Mkrtchyan * functions to consume current state id 2262cd4a59STigran Mkrtchyan */ 239428fe1aSTigran Mkrtchyan extern void nfsd4_get_opendowngradestateid(struct nfsd4_compound_state *cstate, struct nfsd4_open_downgrade *); 249428fe1aSTigran Mkrtchyan extern void nfsd4_get_delegreturnstateid(struct nfsd4_compound_state *, struct nfsd4_delegreturn *); 251e97b519STigran Mkrtchyan extern void nfsd4_get_freestateid(struct nfsd4_compound_state *, struct nfsd4_free_stateid *); 261e97b519STigran Mkrtchyan extern void nfsd4_get_setattrstateid(struct nfsd4_compound_state *, struct nfsd4_setattr *); 2762cd4a59STigran Mkrtchyan extern void nfsd4_get_closestateid(struct nfsd4_compound_state *, struct nfsd4_close *); 2862cd4a59STigran Mkrtchyan extern void nfsd4_get_lockustateid(struct nfsd4_compound_state *, struct nfsd4_locku *); 2930813e27STigran Mkrtchyan extern void nfsd4_get_readstateid(struct nfsd4_compound_state *, struct nfsd4_read *); 3030813e27STigran Mkrtchyan extern void nfsd4_get_writestateid(struct nfsd4_compound_state *, struct nfsd4_write *); 3162cd4a59STigran Mkrtchyan 328b70484cSTigran Mkrtchyan #endif /* _NFSD4_CURRENT_STATE_H */ 33