projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3994ee6
)
SUNRPC: Clean up xdr_enter_page
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 21 Jun 2012 18:53:10 +0000
(14:53 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 28 Jun 2012 21:20:46 +0000
(17:20 -0400)
Use the xdr_align_pages() helper
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xdr.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/xdr.c
b/net/sunrpc/xdr.c
index
03603f3
..
2e3694e
100644
(file)
--- a/
net/sunrpc/xdr.c
+++ b/
net/sunrpc/xdr.c
@@
-826,13
+826,13
@@
EXPORT_SYMBOL_GPL(xdr_read_pages);
*/
void xdr_enter_page(struct xdr_stream *xdr, unsigned int len)
{
- len = xdr_
read
_pages(xdr, len);
+ len = xdr_
align
_pages(xdr, len);
/*
* Position current pointer at beginning of tail, and
* set remaining message length.
*/
- xdr_set_page_base(xdr, 0, len);
-
xdr->nwords += XDR_QUADLEN(xdr->buf->page_
len);
+ if (len != 0)
+
xdr_set_page_base(xdr, 0,
len);
}
EXPORT_SYMBOL_GPL(xdr_enter_page);