1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 28b70484cSTigran Mkrtchyan #ifndef _NFSD4_CURRENT_STATE_H 38b70484cSTigran Mkrtchyan #define _NFSD4_CURRENT_STATE_H 48b70484cSTigran Mkrtchyan 58b70484cSTigran Mkrtchyan #include "state.h" 68b70484cSTigran Mkrtchyan #include "xdr4.h" 78b70484cSTigran Mkrtchyan 837c593c5STigran Mkrtchyan extern void clear_current_stateid(struct nfsd4_compound_state *cstate); 962cd4a59STigran Mkrtchyan /* 1062cd4a59STigran Mkrtchyan * functions to set current state id 1162cd4a59STigran Mkrtchyan */ 12b60e9859SChristoph Hellwig extern void nfsd4_set_opendowngradestateid(struct nfsd4_compound_state *, 13b60e9859SChristoph Hellwig union nfsd4_op_u *); 14b60e9859SChristoph Hellwig extern void nfsd4_set_openstateid(struct nfsd4_compound_state *, 15b60e9859SChristoph Hellwig union nfsd4_op_u *); 16b60e9859SChristoph Hellwig extern void nfsd4_set_lockstateid(struct nfsd4_compound_state *, 17b60e9859SChristoph Hellwig union nfsd4_op_u *); 18b60e9859SChristoph Hellwig extern void nfsd4_set_closestateid(struct nfsd4_compound_state *, 19b60e9859SChristoph Hellwig union nfsd4_op_u *); 208b70484cSTigran Mkrtchyan 2162cd4a59STigran Mkrtchyan /* 2262cd4a59STigran Mkrtchyan * functions to consume current state id 2362cd4a59STigran Mkrtchyan */ 2457832e7bSChristoph Hellwig extern void nfsd4_get_opendowngradestateid(struct nfsd4_compound_state *, 2557832e7bSChristoph Hellwig union nfsd4_op_u *); 2657832e7bSChristoph Hellwig extern void nfsd4_get_delegreturnstateid(struct nfsd4_compound_state *, 2757832e7bSChristoph Hellwig union nfsd4_op_u *); 2857832e7bSChristoph Hellwig extern void nfsd4_get_freestateid(struct nfsd4_compound_state *, 2957832e7bSChristoph Hellwig union nfsd4_op_u *); 3057832e7bSChristoph Hellwig extern void nfsd4_get_setattrstateid(struct nfsd4_compound_state *, 3157832e7bSChristoph Hellwig union nfsd4_op_u *); 3257832e7bSChristoph Hellwig extern void nfsd4_get_closestateid(struct nfsd4_compound_state *, 3357832e7bSChristoph Hellwig union nfsd4_op_u *); 3457832e7bSChristoph Hellwig extern void nfsd4_get_lockustateid(struct nfsd4_compound_state *, 3557832e7bSChristoph Hellwig union nfsd4_op_u *); 3657832e7bSChristoph Hellwig extern void nfsd4_get_readstateid(struct nfsd4_compound_state *, 3757832e7bSChristoph Hellwig union nfsd4_op_u *); 3857832e7bSChristoph Hellwig extern void nfsd4_get_writestateid(struct nfsd4_compound_state *, 3957832e7bSChristoph Hellwig union nfsd4_op_u *); 4062cd4a59STigran Mkrtchyan 418b70484cSTigran Mkrtchyan #endif /* _NFSD4_CURRENT_STATE_H */ 42