diff options
author | J. Bruce Fields <bfields@redhat.com> | 2011-04-09 11:23:24 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-04-11 08:42:21 -0400 |
commit | 22b03214962ec2a9748abc9987fc2e66dec4626d (patch) | |
tree | c179d4f9d06e5f92704820da28896bbc4ec46999 /fs/nfsd | |
parent | 204f4ce75434c3453907813f8a819d4cf2a5728f (diff) |
nfsd4: introduce OPDESC helper
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 5fcb1396a7e3..126b8f75b576 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c | |||
@@ -1031,6 +1031,11 @@ static __be32 nfs41_check_op_ordering(struct nfsd4_compoundargs *args) | |||
1031 | return nfs_ok; | 1031 | return nfs_ok; |
1032 | } | 1032 | } |
1033 | 1033 | ||
1034 | static inline struct nfsd4_operation *OPDESC(struct nfsd4_op *op) | ||
1035 | { | ||
1036 | return &nfsd4_ops[op->opnum]; | ||
1037 | } | ||
1038 | |||
1034 | /* | 1039 | /* |
1035 | * COMPOUND call. | 1040 | * COMPOUND call. |
1036 | */ | 1041 | */ |
@@ -1108,7 +1113,7 @@ nfsd4_proc_compound(struct svc_rqst *rqstp, | |||
1108 | goto encode_op; | 1113 | goto encode_op; |
1109 | } | 1114 | } |
1110 | 1115 | ||
1111 | opdesc = &nfsd4_ops[op->opnum]; | 1116 | opdesc = OPDESC(op); |
1112 | 1117 | ||
1113 | if (!cstate->current_fh.fh_dentry) { | 1118 | if (!cstate->current_fh.fh_dentry) { |
1114 | if (!(opdesc->op_flags & ALLOWED_WITHOUT_FH)) { | 1119 | if (!(opdesc->op_flags & ALLOWED_WITHOUT_FH)) { |