]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix up xdr_read_pages() to take arbitrary object lengths
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 20 Nov 2020 21:31:03 +0000 (16:31 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 2 Dec 2020 19:05:53 +0000 (14:05 -0500)
commitda058d75d6d0323b0b44b8355780e282a884e3af
tree4e29813d4699cc54b08569f9451706261c0a0799
parent99be78ff9be0c00f00ea2a3f7a75aa7421fa942d
SUNRPC: Fix up xdr_read_pages() to take arbitrary object lengths

Fix up xdr_read_pages() so that it can handle object lengths that are
larger than the page length, by simply aligning to the next object in
the buffer tail.
The function will continue to return the length of the truncate object
data that actually fit into the pages.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xdr.c