Skip to content

Commit

Permalink
SUNRPC: Clean up xdr_enter_page
Browse files Browse the repository at this point in the history
Use the xdr_align_pages() helper

Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Jun 28, 2012
1 parent 3994ee6 commit f8bb7f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/sunrpc/xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f8bb7f0

Please sign in to comment.