]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfs: do not extend writes to the entire folio
authorChristoph Hellwig <hch@lst.de>
Fri, 5 Jul 2024 05:42:51 +0000 (07:42 +0200)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 12 Jul 2024 15:36:08 +0000 (11:36 -0400)
commit39c910a430370fd25d5b5e4b2f4b24581a705499
treeb2c7a09c25c02d7c4e6796daed57b719051afbf0
parent3921ae0850a31f06791e3c5d8f628864b5ae088a
nfs: do not extend writes to the entire folio

nfs_update_folio has code to extend a write to the entire page under
certain conditions.  With the support for large folios this now
suddenly extents to the variable sized and potentially much larger folio.
Add code to limit the extension to the page boundaries of the start and
end of the write, which matches the historic expecation and the code
comments.

Fixes: b73fe2dd6cd5 ("nfs: add support for large folios")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/write.c