Commit 22b03214 authored by J. Bruce Fields's avatar J. Bruce Fields

nfsd4: introduce OPDESC helper

Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 204f4ce7
...@@ -1031,6 +1031,11 @@ static __be32 nfs41_check_op_ordering(struct nfsd4_compoundargs *args) ...@@ -1031,6 +1031,11 @@ static __be32 nfs41_check_op_ordering(struct nfsd4_compoundargs *args)
return nfs_ok; return nfs_ok;
} }
static inline struct nfsd4_operation *OPDESC(struct nfsd4_op *op)
{
return &nfsd4_ops[op->opnum];
}
/* /*
* COMPOUND call. * COMPOUND call.
*/ */
...@@ -1108,7 +1113,7 @@ nfsd4_proc_compound(struct svc_rqst *rqstp, ...@@ -1108,7 +1113,7 @@ nfsd4_proc_compound(struct svc_rqst *rqstp,
goto encode_op; goto encode_op;
} }
opdesc = &nfsd4_ops[op->opnum]; opdesc = OPDESC(op);
if (!cstate->current_fh.fh_dentry) { if (!cstate->current_fh.fh_dentry) {
if (!(opdesc->op_flags & ALLOWED_WITHOUT_FH)) { if (!(opdesc->op_flags & ALLOWED_WITHOUT_FH)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment