Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Tigran Mkrtchyan | 8b70484 | 2012-02-13 22:55:24 +0100 | [diff] [blame] | 2 | #ifndef _NFSD4_CURRENT_STATE_H |
| 3 | #define _NFSD4_CURRENT_STATE_H |
| 4 | |
| 5 | #include "state.h" |
| 6 | #include "xdr4.h" |
| 7 | |
Tigran Mkrtchyan | 37c593c | 2012-02-13 22:55:32 +0100 | [diff] [blame] | 8 | extern void clear_current_stateid(struct nfsd4_compound_state *cstate); |
Tigran Mkrtchyan | 62cd4a5 | 2012-02-13 22:55:25 +0100 | [diff] [blame] | 9 | /* |
| 10 | * functions to set current state id |
| 11 | */ |
Christoph Hellwig | b60e985 | 2017-05-08 20:03:15 +0200 | [diff] [blame] | 12 | extern void nfsd4_set_opendowngradestateid(struct nfsd4_compound_state *, |
| 13 | union nfsd4_op_u *); |
| 14 | extern void nfsd4_set_openstateid(struct nfsd4_compound_state *, |
| 15 | union nfsd4_op_u *); |
| 16 | extern void nfsd4_set_lockstateid(struct nfsd4_compound_state *, |
| 17 | union nfsd4_op_u *); |
| 18 | extern void nfsd4_set_closestateid(struct nfsd4_compound_state *, |
| 19 | union nfsd4_op_u *); |
Tigran Mkrtchyan | 8b70484 | 2012-02-13 22:55:24 +0100 | [diff] [blame] | 20 | |
Tigran Mkrtchyan | 62cd4a5 | 2012-02-13 22:55:25 +0100 | [diff] [blame] | 21 | /* |
| 22 | * functions to consume current state id |
| 23 | */ |
Christoph Hellwig | 57832e7 | 2017-05-08 20:37:33 +0200 | [diff] [blame] | 24 | extern void nfsd4_get_opendowngradestateid(struct nfsd4_compound_state *, |
| 25 | union nfsd4_op_u *); |
| 26 | extern void nfsd4_get_delegreturnstateid(struct nfsd4_compound_state *, |
| 27 | union nfsd4_op_u *); |
| 28 | extern void nfsd4_get_freestateid(struct nfsd4_compound_state *, |
| 29 | union nfsd4_op_u *); |
| 30 | extern void nfsd4_get_setattrstateid(struct nfsd4_compound_state *, |
| 31 | union nfsd4_op_u *); |
| 32 | extern void nfsd4_get_closestateid(struct nfsd4_compound_state *, |
| 33 | union nfsd4_op_u *); |
| 34 | extern void nfsd4_get_lockustateid(struct nfsd4_compound_state *, |
| 35 | union nfsd4_op_u *); |
| 36 | extern void nfsd4_get_readstateid(struct nfsd4_compound_state *, |
| 37 | union nfsd4_op_u *); |
| 38 | extern void nfsd4_get_writestateid(struct nfsd4_compound_state *, |
| 39 | union nfsd4_op_u *); |
Tigran Mkrtchyan | 62cd4a5 | 2012-02-13 22:55:25 +0100 | [diff] [blame] | 40 | |
Tigran Mkrtchyan | 8b70484 | 2012-02-13 22:55:24 +0100 | [diff] [blame] | 41 | #endif /* _NFSD4_CURRENT_STATE_H */ |