Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ec7e8cae
Commit
ec7e8cae
authored
May 08, 2017
by
Christoph Hellwig
Committed by
Anna Schumaker
Jul 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfsd: use named initializers in PROC()
Signed-off-by:
Christoph Hellwig
<
hch@lst.de
>
parent
39d43f75
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
27 deletions
+27
-27
fs/nfsd/nfs2acl.c
fs/nfsd/nfs2acl.c
+11
-11
fs/nfsd/nfs3acl.c
fs/nfsd/nfs3acl.c
+11
-11
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4proc.c
+5
-5
No files found.
fs/nfsd/nfs2acl.c
View file @
ec7e8cae
...
...
@@ -346,16 +346,16 @@ static int nfsaclsvc_release_access(struct svc_rqst *rqstp, __be32 *p,
struct
nfsd3_voidargs
{
int
dummy
;
};
#define PROC(name, argt, rest, relt, cache, respsize) \
{ (svc_procfunc) nfsacld_proc_##name,
\
(kxdrproc_t) nfsaclsvc_decode_##argt##args,
\
(kxdrproc_t) nfsaclsvc_encode_##rest##re
s, \
(kxdrproc_t) nfsaclsvc_release_##relt,
\
sizeof(struct nfsd3_##argt##args),
\
sizeof(struct nfsd3_##rest##re
s), \
0,
\
cache, \
respsize, \
}
{
\
.pc_func = (svc_procfunc) nfsacld_proc_##name,
\
.pc_decode = (kxdrproc_t) nfsaclsvc_decode_##argt##arg
s, \
.pc_encode = (kxdrproc_t) nfsaclsvc_encode_##rest##res,
\
.pc_release = (kxdrproc_t) nfsaclsvc_release_##relt,
\
.pc_argsize = sizeof(struct nfsd3_##argt##arg
s), \
.pc_ressize = sizeof(struct nfsd3_##rest##res),
\
.pc_cachetype =
cache, \
.pc_xdrressize =
respsize, \
}
#define ST 1
/* status*/
#define AT 21
/* attributes */
...
...
fs/nfsd/nfs3acl.c
View file @
ec7e8cae
...
...
@@ -238,16 +238,16 @@ static int nfs3svc_release_getacl(struct svc_rqst *rqstp, __be32 *p,
struct
nfsd3_voidargs
{
int
dummy
;
};
#define PROC(name, argt, rest, relt, cache, respsize) \
{ (svc_procfunc) nfsd3_proc_##name,
\
(kxdrproc_t) nfs3svc_decode_##argt##args,
\
(kxdrproc_t) nfs3svc_encode_##rest##re
s, \
(kxdrproc_t) nfs3svc_release_##relt,
\
sizeof(struct nfsd3_##argt##args)
, \
sizeof(struct nfsd3_##rest##re
s), \
0,
\
cache, \
respsize, \
}
{
\
.pc_func = (svc_procfunc) nfsd3_proc_##name,
\
.pc_decode = (kxdrproc_t) nfs3svc_decode_##argt##arg
s, \
.pc_encode = (kxdrproc_t) nfs3svc_encode_##rest##res,
\
.pc_release = (kxdrproc_t) nfs3svc_release_##relt
, \
.pc_argsize = sizeof(struct nfsd3_##argt##arg
s), \
.pc_ressize = sizeof(struct nfsd3_##rest##res),
\
.pc_cachetype =
cache, \
.pc_xdrressize =
respsize, \
}
#define ST 1
/* status*/
#define AT 21
/* attributes */
...
...
fs/nfsd/nfs4proc.c
View file @
ec7e8cae
...
...
@@ -1673,10 +1673,10 @@ static void svcxdr_init_encode(struct svc_rqst *rqstp,
* COMPOUND call.
*/
static
__be32
nfsd4_proc_compound
(
struct
svc_rqst
*
rqstp
,
struct
nfsd4_compoundargs
*
args
,
struct
nfsd4_compoundres
*
resp
)
nfsd4_proc_compound
(
struct
svc_rqst
*
rqstp
,
void
*
arg
,
void
*
res
)
{
struct
nfsd4_compoundargs
*
args
=
arg
;
struct
nfsd4_compoundres
*
resp
=
res
;
struct
nfsd4_op
*
op
;
struct
nfsd4_operation
*
opdesc
;
struct
nfsd4_compound_state
*
cstate
=
&
resp
->
cstate
;
...
...
@@ -2517,7 +2517,7 @@ struct nfsd4_voidargs { int dummy; };
static
struct
svc_procedure
nfsd_procedures4
[
2
]
=
{
[
NFSPROC4_NULL
]
=
{
.
pc_func
=
(
svc_procfunc
)
nfsd4_proc_null
,
.
pc_func
=
nfsd4_proc_null
,
.
pc_encode
=
(
kxdrproc_t
)
nfs4svc_encode_voidres
,
.
pc_argsize
=
sizeof
(
struct
nfsd4_voidargs
),
.
pc_ressize
=
sizeof
(
struct
nfsd4_voidres
),
...
...
@@ -2525,7 +2525,7 @@ static struct svc_procedure nfsd_procedures4[2] = {
.
pc_xdrressize
=
1
,
},
[
NFSPROC4_COMPOUND
]
=
{
.
pc_func
=
(
svc_procfunc
)
nfsd4_proc_compound
,
.
pc_func
=
nfsd4_proc_compound
,
.
pc_decode
=
(
kxdrproc_t
)
nfs4svc_decode_compoundargs
,
.
pc_encode
=
(
kxdrproc_t
)
nfs4svc_encode_compoundres
,
.
pc_argsize
=
sizeof
(
struct
nfsd4_compoundargs
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment