NFS: fix up nfs_release_folio() to try to release the page
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 19 Jan 2023 21:33:48 +0000 (16:33 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 14 Feb 2023 19:22:33 +0000 (14:22 -0500)
commit96780ca55e3cbf4f150fd5a833a61492c9947b5b
tree2b3f114b7e4296e6fa568efab2f939c54101e007
parent70e9db69f927bb378db9aaa807cc83ae550779a9
NFS: fix up nfs_release_folio() to try to release the page

If the gfp context allows it, and we're not kswapd, then try to write
out the folio that has private data.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/file.c