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
140150db
Commit
140150db
authored
Jun 05, 2012
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SUNRPC: Remove unused function xdr_encode_pages
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
b42353ff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
33 deletions
+1
-33
fs/nfs/nfs4proc.c
fs/nfs/nfs4proc.c
+1
-3
include/linux/sunrpc/xdr.h
include/linux/sunrpc/xdr.h
+0
-2
net/sunrpc/xdr.c
net/sunrpc/xdr.c
+0
-28
No files found.
fs/nfs/nfs4proc.c
View file @
140150db
...
...
@@ -2766,9 +2766,7 @@ static int nfs4_proc_access(struct inode *inode, struct nfs_access_entry *entry)
*
* In the case of WRITE, we also want to put the GETATTR after
* the operation -- in this case because we want to make sure
* we get the post-operation mtime and size. This means that
* we can't use xdr_encode_pages() as written: we need a variant
* of it which would leave room in the 'tail' iovec.
* we get the post-operation mtime and size.
*
* Both of these changes to the XDR layer would in fact be quite
* minor, but I decided to leave them for a subsequent patch.
...
...
include/linux/sunrpc/xdr.h
View file @
140150db
...
...
@@ -104,8 +104,6 @@ __be32 *xdr_decode_string_inplace(__be32 *p, char **sp, unsigned int *lenp,
__be32
*
xdr_encode_netobj
(
__be32
*
p
,
const
struct
xdr_netobj
*
);
__be32
*
xdr_decode_netobj
(
__be32
*
p
,
struct
xdr_netobj
*
);
void
xdr_encode_pages
(
struct
xdr_buf
*
,
struct
page
**
,
unsigned
int
,
unsigned
int
);
void
xdr_inline_pages
(
struct
xdr_buf
*
,
unsigned
int
,
struct
page
**
,
unsigned
int
,
unsigned
int
);
void
xdr_terminate_string
(
struct
xdr_buf
*
,
const
u32
);
...
...
net/sunrpc/xdr.c
View file @
140150db
...
...
@@ -128,34 +128,6 @@ xdr_terminate_string(struct xdr_buf *buf, const u32 len)
}
EXPORT_SYMBOL_GPL
(
xdr_terminate_string
);
void
xdr_encode_pages
(
struct
xdr_buf
*
xdr
,
struct
page
**
pages
,
unsigned
int
base
,
unsigned
int
len
)
{
struct
kvec
*
tail
=
xdr
->
tail
;
u32
*
p
;
xdr
->
pages
=
pages
;
xdr
->
page_base
=
base
;
xdr
->
page_len
=
len
;
p
=
(
u32
*
)
xdr
->
head
[
0
].
iov_base
+
XDR_QUADLEN
(
xdr
->
head
[
0
].
iov_len
);
tail
->
iov_base
=
p
;
tail
->
iov_len
=
0
;
if
(
len
&
3
)
{
unsigned
int
pad
=
4
-
(
len
&
3
);
*
p
=
0
;
tail
->
iov_base
=
(
char
*
)
p
+
(
len
&
3
);
tail
->
iov_len
=
pad
;
len
+=
pad
;
}
xdr
->
buflen
+=
len
;
xdr
->
len
+=
len
;
}
EXPORT_SYMBOL_GPL
(
xdr_encode_pages
);
void
xdr_inline_pages
(
struct
xdr_buf
*
xdr
,
unsigned
int
offset
,
struct
page
**
pages
,
unsigned
int
base
,
unsigned
int
len
)
...
...
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