projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
204f4ce
)
nfsd4: introduce OPDESC helper
author
J. Bruce Fields
<bfields@redhat.com>
Sat, 9 Apr 2011 15:23:24 +0000
(11:23 -0400)
committer
J. Bruce Fields
<bfields@redhat.com>
Mon, 11 Apr 2011 12:42:21 +0000
(08:42 -0400)
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/nfs4proc.c
b/fs/nfsd/nfs4proc.c
index 5fcb1396a7e324ada8f3cf639f2e6c025ca9a689..126b8f75b576dfadc2e7fd8d5c1649f0f306c048 100644
(file)
--- a/
fs/nfsd/nfs4proc.c
+++ b/
fs/nfsd/nfs4proc.c
@@
-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)) {