^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef _NFSD4_CURRENT_STATE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define _NFSD4_CURRENT_STATE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include "state.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #include "xdr4.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) extern void clear_current_stateid(struct nfsd4_compound_state *cstate);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) * functions to set current state id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) extern void nfsd4_set_opendowngradestateid(struct nfsd4_compound_state *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) union nfsd4_op_u *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) extern void nfsd4_set_openstateid(struct nfsd4_compound_state *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) union nfsd4_op_u *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) extern void nfsd4_set_lockstateid(struct nfsd4_compound_state *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) union nfsd4_op_u *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) extern void nfsd4_set_closestateid(struct nfsd4_compound_state *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) union nfsd4_op_u *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) * functions to consume current state id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) extern void nfsd4_get_opendowngradestateid(struct nfsd4_compound_state *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) union nfsd4_op_u *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extern void nfsd4_get_delegreturnstateid(struct nfsd4_compound_state *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) union nfsd4_op_u *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) extern void nfsd4_get_freestateid(struct nfsd4_compound_state *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) union nfsd4_op_u *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) extern void nfsd4_get_setattrstateid(struct nfsd4_compound_state *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) union nfsd4_op_u *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) extern void nfsd4_get_closestateid(struct nfsd4_compound_state *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) union nfsd4_op_u *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) extern void nfsd4_get_lockustateid(struct nfsd4_compound_state *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) union nfsd4_op_u *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) extern void nfsd4_get_readstateid(struct nfsd4_compound_state *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) union nfsd4_op_u *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) extern void nfsd4_get_writestateid(struct nfsd4_compound_state *,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) union nfsd4_op_u *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #endif /* _NFSD4_CURRENT_STATE_H */