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
70019514
Commit
70019514
authored
Mar 04, 2012
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSv4: Cleanup - convert more functions to use encode_op_hdr
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
cd93710e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
fs/nfs/nfs4xdr.c
fs/nfs/nfs4xdr.c
+2
-9
No files found.
fs/nfs/nfs4xdr.c
View file @
70019514
...
...
@@ -1644,8 +1644,7 @@ static void encode_setclientid(struct xdr_stream *xdr, const struct nfs4_setclie
{
__be32
*
p
;
p
=
reserve_space
(
xdr
,
4
);
*
p
=
cpu_to_be32
(
OP_SETCLIENTID
);
encode_op_hdr
(
xdr
,
OP_SETCLIENTID
,
decode_setclientid_maxsz
,
hdr
);
encode_nfs4_verifier
(
xdr
,
setclientid
->
sc_verifier
);
encode_string
(
xdr
,
setclientid
->
sc_name_len
,
setclientid
->
sc_name
);
...
...
@@ -1655,8 +1654,6 @@ static void encode_setclientid(struct xdr_stream *xdr, const struct nfs4_setclie
encode_string
(
xdr
,
setclientid
->
sc_uaddr_len
,
setclientid
->
sc_uaddr
);
p
=
reserve_space
(
xdr
,
4
);
*
p
=
cpu_to_be32
(
setclientid
->
sc_cb_ident
);
hdr
->
nops
++
;
hdr
->
replen
+=
decode_setclientid_maxsz
;
}
static
void
encode_setclientid_confirm
(
struct
xdr_stream
*
xdr
,
const
struct
nfs4_setclientid_res
*
arg
,
struct
compound_hdr
*
hdr
)
...
...
@@ -1709,8 +1706,7 @@ static void encode_exchange_id(struct xdr_stream *xdr,
char
impl_name
[
NFS4_OPAQUE_LIMIT
];
int
len
=
0
;
p
=
reserve_space
(
xdr
,
4
);
*
p
=
cpu_to_be32
(
OP_EXCHANGE_ID
);
encode_op_hdr
(
xdr
,
OP_EXCHANGE_ID
,
decode_exchange_id_maxsz
,
hdr
);
encode_nfs4_verifier
(
xdr
,
args
->
verifier
);
encode_string
(
xdr
,
args
->
id_len
,
args
->
id
);
...
...
@@ -1740,9 +1736,6 @@ static void encode_exchange_id(struct xdr_stream *xdr,
*
p
=
cpu_to_be32
(
0
);
}
else
*
p
=
cpu_to_be32
(
0
);
/* implementation id array length=0 */
hdr
->
nops
++
;
hdr
->
replen
+=
decode_exchange_id_maxsz
;
}
static
void
encode_create_session
(
struct
xdr_stream
*
xdr
,
...
...
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