+1
-1
net/sunrpc/xdr.c
+1
-1
net/sunrpc/xdr.c
···
984
984
p = page_address(*xdr->page_ptr);
985
985
xdr->p = p + frag2bytes;
986
986
space_left = xdr->buf->buflen - xdr->buf->len;
987
-
if (space_left - nbytes >= PAGE_SIZE)
987
+
if (space_left - frag1bytes >= PAGE_SIZE)
988
988
xdr->end = p + PAGE_SIZE;
989
989
else
990
990
xdr->end = p + space_left - frag1bytes;