diff options
| author | Tigran Mkrtchyan <[email protected]> | 2012-02-13 22:55:30 +0100 |
|---|---|---|
| committer | J. Bruce Fields <[email protected]> | 2012-02-15 11:20:43 -0500 |
| commit | 1e97b5190d9538748cbf72c20a56b2c5cbd2f61d (patch) | |
| tree | fe06a4c0bb2ee61511aecaf31ad3ef2ce911231c /fs/nfsd/nfs4state.c | |
| parent | d14710532ff192033450aa8ec57f7a93670d4c5f (diff) | |
nfsd41: handle current stateid in SETATTR and FREE_STATEID
Signed-off-by: Tigran Mkrtchyan <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
| -rw-r--r-- | fs/nfsd/nfs4state.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index e97036f32b9b..5258ac1f4cbd 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -4734,6 +4734,19 @@ nfsd4_set_lockstateid(struct nfsd4_compound_state *cstate, struct nfsd4_lock *lo /* * functions to consume current state id */ + +void +nfsd4_get_freestateid(struct nfsd4_compound_state *cstate, struct nfsd4_free_stateid *fsp) +{ + get_stateid(cstate, &fsp->fr_stateid); +} + +void +nfsd4_get_setattrstateid(struct nfsd4_compound_state *cstate, struct nfsd4_setattr *setattr) +{ + get_stateid(cstate, &setattr->sa_stateid); +} + void nfsd4_get_closestateid(struct nfsd4_compound_state *cstate, struct nfsd4_close *close) { |