NFS: nfs_invalidate_folio() must observe the offset and size arguments
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 3 Sep 2025 15:48:57 +0000 (11:48 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Sep 2025 20:51:26 +0000 (16:51 -0400)
commitb7b8574225e9d2b5f1fb5483886ab797892f43b5
tree2924b4420caa76576c7c050f29e03e21870b857c
parentca247c89900ae90207f4d321e260cd93b7c7d104
NFS: nfs_invalidate_folio() must observe the offset and size arguments

If we're truncating part of the folio, then we need to write out the
data on the part that is not covered by the cancellation.

Fixes: d47992f86b30 ("mm: change invalidatepage prototype to accept length")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/file.c
fs/nfs/write.c