mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
nfsd4: introduce OPDESC helper
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
204f4ce754
commit
22b0321496
1 changed files with 6 additions and 1 deletions
|
@ -1031,6 +1031,11 @@ static __be32 nfs41_check_op_ordering(struct nfsd4_compoundargs *args)
|
|||
return nfs_ok;
|
||||
}
|
||||
|
||||
static inline struct nfsd4_operation *OPDESC(struct nfsd4_op *op)
|
||||
{
|
||||
return &nfsd4_ops[op->opnum];
|
||||
}
|
||||
|
||||
/*
|
||||
* COMPOUND call.
|
||||
*/
|
||||
|
@ -1108,7 +1113,7 @@ nfsd4_proc_compound(struct svc_rqst *rqstp,
|
|||
goto encode_op;
|
||||
}
|
||||
|
||||
opdesc = &nfsd4_ops[op->opnum];
|
||||
opdesc = OPDESC(op);
|
||||
|
||||
if (!cstate->current_fh.fh_dentry) {
|
||||
if (!(opdesc->op_flags & ALLOWED_WITHOUT_FH)) {
|
||||
|
|
Loading…
Reference in a new issue