NFS: Convert nfs_write_begin/end to use folios
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 19 Jan 2023 21:33:45 +0000 (16:33 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 14 Feb 2023 19:22:32 +0000 (14:22 -0500)
commit54d99381b7371d2999566d1fb4ea88d46cf9d865
tree70f92d82c6d512b375a2c1e670f2399b601aa224
parent4cbf76948c457f0beb9f184ebb21341c8235846a
NFS: Convert nfs_write_begin/end to use folios

Add a helper nfs_folio_grab_cache_write_begin() that can call
__filemap_get_folio() directly with the appropriate parameters.

Since write_begin()/write_end() take struct page arguments, just pass
the folio->page back for now.

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