]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: centralize handling of replay owners
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 24 Aug 2011 16:27:31 +0000 (12:27 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 31 Aug 2011 21:56:02 +0000 (17:56 -0400)
commite43f785421677f67ca1873348c39d56cc654b466
tree32a6401b29c2c96371bb4aeed5812b1ae58ab90f
parent0d35bcf45bc34d9f113bf60187d8fadc6fac60fe
nfsd4: centralize handling of replay owners

Set the stateowner associated with a replay in one spot in
nfs4_preprocess_seqid_op() and keep it in cstate.  This allows removing
a few lines of boilerplate from all the nfs4_preprocess_seqid_op()
callers.

Also turn ENCODE_SEQID_OP_TAIL into a function while we're here.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
fs/nfsd/nfs4xdr.c