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
d169a6a9
Commit
d169a6a9
authored
Nov 03, 2020
by
Chuck Lever
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSD: Replace READ* macros in nfsd4_decode_access()
Signed-off-by:
Chuck Lever
<
chuck.lever@oracle.com
>
parent
c1346a12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
fs/nfsd/nfs4xdr.c
fs/nfsd/nfs4xdr.c
+13
-11
No files found.
fs/nfsd/nfs4xdr.c
View file @
d169a6a9
...
...
@@ -439,17 +439,6 @@ nfsd4_decode_stateid(struct nfsd4_compoundargs *argp, stateid_t *sid)
DECODE_TAIL
;
}
static
__be32
nfsd4_decode_access
(
struct
nfsd4_compoundargs
*
argp
,
struct
nfsd4_access
*
access
)
{
DECODE_HEAD
;
READ_BUF
(
4
);
access
->
ac_req_access
=
be32_to_cpup
(
p
++
);
DECODE_TAIL
;
}
static
__be32
nfsd4_decode_cb_sec
(
struct
nfsd4_compoundargs
*
argp
,
struct
nfsd4_cb_sec
*
cbs
)
{
DECODE_HEAD
;
...
...
@@ -531,6 +520,19 @@ static __be32 nfsd4_decode_cb_sec(struct nfsd4_compoundargs *argp, struct nfsd4_
DECODE_TAIL
;
}
/*
* NFSv4 operation argument decoders
*/
static
__be32
nfsd4_decode_access
(
struct
nfsd4_compoundargs
*
argp
,
struct
nfsd4_access
*
access
)
{
if
(
xdr_stream_decode_u32
(
argp
->
xdr
,
&
access
->
ac_req_access
)
<
0
)
return
nfserr_bad_xdr
;
return
nfs_ok
;
}
static
__be32
nfsd4_decode_backchannel_ctl
(
struct
nfsd4_compoundargs
*
argp
,
struct
nfsd4_backchannel_ctl
*
bc
)
{
DECODE_HEAD
;
...
...
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