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
cf907b11
Commit
cf907b11
authored
Nov 03, 2020
by
Chuck Lever
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSD: Replace READ* macros in nfsd4_decode_sequence()
Signed-off-by:
Chuck Lever
<
chuck.lever@oracle.com
>
parent
53d70873
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
16 deletions
+20
-16
fs/nfsd/nfs4xdr.c
fs/nfsd/nfs4xdr.c
+20
-16
No files found.
fs/nfsd/nfs4xdr.c
View file @
cf907b11
...
...
@@ -1738,22 +1738,6 @@ nfsd4_decode_free_stateid(struct nfsd4_compoundargs *argp,
return
nfsd4_decode_stateid4
(
argp
,
&
free_stateid
->
fr_stateid
);
}
static
__be32
nfsd4_decode_sequence
(
struct
nfsd4_compoundargs
*
argp
,
struct
nfsd4_sequence
*
seq
)
{
DECODE_HEAD
;
READ_BUF
(
NFS4_MAX_SESSIONID_LEN
+
16
);
COPYMEM
(
seq
->
sessionid
.
data
,
NFS4_MAX_SESSIONID_LEN
);
seq
->
seqid
=
be32_to_cpup
(
p
++
);
seq
->
slotid
=
be32_to_cpup
(
p
++
);
seq
->
maxslots
=
be32_to_cpup
(
p
++
);
seq
->
cachethis
=
be32_to_cpup
(
p
++
);
DECODE_TAIL
;
}
static
__be32
nfsd4_decode_test_stateid
(
struct
nfsd4_compoundargs
*
argp
,
struct
nfsd4_test_stateid
*
test_stateid
)
{
...
...
@@ -1915,6 +1899,26 @@ static __be32 nfsd4_decode_secinfo_no_name(struct nfsd4_compoundargs *argp,
return
nfs_ok
;
}
static
__be32
nfsd4_decode_sequence
(
struct
nfsd4_compoundargs
*
argp
,
struct
nfsd4_sequence
*
seq
)
{
__be32
*
p
,
status
;
status
=
nfsd4_decode_sessionid4
(
argp
,
&
seq
->
sessionid
);
if
(
status
)
return
status
;
p
=
xdr_inline_decode
(
argp
->
xdr
,
XDR_UNIT
*
4
);
if
(
!
p
)
return
nfserr_bad_xdr
;
seq
->
seqid
=
be32_to_cpup
(
p
++
);
seq
->
slotid
=
be32_to_cpup
(
p
++
);
seq
->
maxslots
=
be32_to_cpup
(
p
++
);
seq
->
cachethis
=
be32_to_cpup
(
p
);
return
nfs_ok
;
}
static
__be32
nfsd4_decode_fallocate
(
struct
nfsd4_compoundargs
*
argp
,
struct
nfsd4_fallocate
*
fallocate
)
...
...
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