NFSD: Batch release pages during splice read
authorChuck Lever <chuck.lever@oracle.com>
Mon, 28 Jun 2021 21:24:27 +0000 (17:24 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 17 Aug 2021 15:47:52 +0000 (11:47 -0400)
commit496d83cf0f2fa70cfe256c2499e2d3523d3868f3
treedeb2492a54153a260103fb031416c23aeb5a6971
parent2f0f88f42f2eab0421ed37d7494de9124fdf0d34
NFSD: Batch release pages during splice read

Large splice reads call put_page() repeatedly. put_page() is
relatively expensive to call, so replace it with the new
svc_rqst_replace_page() helper to help amortize that cost.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: NeilBrown <neilb@suse.de>
fs/nfsd/vfs.c