OSDN Git Service

SUNRPC: Fix up handling of the XDRBUF_SPARSE_PAGES flag
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 2 Dec 2018 20:22:48 +0000 (15:22 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 5 Dec 2018 12:11:12 +0000 (07:11 -0500)
commit16e5e90f0e4f9b7b2e4d08558a2f695e2fa1fb0d
tree3ad2f6300ed7f53e640d8f8c1211397d4fa868cc
parentc443305529d1d3d3bee0d68fdd14ae89835e091f
SUNRPC: Fix up handling of the XDRBUF_SPARSE_PAGES flag

If the allocator fails before it has reached the target number of pages,
then we need to recheck that we're not seeking past the page buffer.

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