SUNRPC: Add the ability to expand holes in data pages
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 28 May 2014 17:38:53 +0000 (13:38 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 7 Oct 2020 18:28:39 +0000 (14:28 -0400)
commit84ce182ab85b8ad5002fb1125ba572df99dd0d1c
tree36f05b537b1100e12933283fa9d445f193e86d81
parent43f0f0816cdbe7361dd17db3b4c1033446033ba6
SUNRPC: Add the ability to expand holes in data pages

This patch adds the ability to "read a hole" into a set of XDR data
pages by taking the following steps:

1) Shift all data after the current xdr->p to the right, possibly into
   the tail,
2) Zero the specified range, and
3) Update xdr->p to point beyond the hole.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/sunrpc/xdr.h
net/sunrpc/xdr.c