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
d3d2f381
Commit
d3d2f381
authored
Nov 03, 2020
by
Chuck Lever
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSD: Replace READ* macros in nfsd4_decode_close()
Signed-off-by:
Chuck Lever
<
chuck.lever@oracle.com
>
parent
d169a6a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
fs/nfsd/nfs4xdr.c
fs/nfsd/nfs4xdr.c
+16
-7
No files found.
fs/nfsd/nfs4xdr.c
View file @
d3d2f381
...
...
@@ -439,6 +439,19 @@ nfsd4_decode_stateid(struct nfsd4_compoundargs *argp, stateid_t *sid)
DECODE_TAIL
;
}
static
__be32
nfsd4_decode_stateid4
(
struct
nfsd4_compoundargs
*
argp
,
stateid_t
*
sid
)
{
__be32
*
p
;
p
=
xdr_inline_decode
(
argp
->
xdr
,
NFS4_STATEID_SIZE
);
if
(
!
p
)
return
nfserr_bad_xdr
;
sid
->
si_generation
=
be32_to_cpup
(
p
++
);
memcpy
(
&
sid
->
si_opaque
,
p
,
sizeof
(
sid
->
si_opaque
));
return
nfs_ok
;
}
static
__be32
nfsd4_decode_cb_sec
(
struct
nfsd4_compoundargs
*
argp
,
struct
nfsd4_cb_sec
*
cbs
)
{
DECODE_HEAD
;
...
...
@@ -559,13 +572,9 @@ static __be32 nfsd4_decode_bind_conn_to_session(struct nfsd4_compoundargs *argp,
static
__be32
nfsd4_decode_close
(
struct
nfsd4_compoundargs
*
argp
,
struct
nfsd4_close
*
close
)
{
DECODE_HEAD
;
READ_BUF
(
4
);
close
->
cl_seqid
=
be32_to_cpup
(
p
++
);
return
nfsd4_decode_stateid
(
argp
,
&
close
->
cl_stateid
);
DECODE_TAIL
;
if
(
xdr_stream_decode_u32
(
argp
->
xdr
,
&
close
->
cl_seqid
)
<
0
)
return
nfserr_bad_xdr
;
return
nfsd4_decode_stateid4
(
argp
,
&
close
->
cl_stateid
);
}
...
...
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