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)
commitf3e4223751392b9bc0195a806a6e99b4cc399ac0
tree32a6401b29c2c96371bb4aeed5812b1ae58ab90f
parent73997dc4183c580278ea8cb41c7a9655940801e0
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