filemap: Convert generic_perform_write() to support large folios
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 27 May 2024 16:36:08 +0000 (18:36 +0200)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Jul 2024 14:55:39 +0000 (10:55 -0400)
commit9aac777aaf9459786bc8463e6cbfc7e7e1abd1f9
treea0fee4272d0171f56d060cb6a2920c12db7815bf
parent146a99aefe4a45f68ed371709103cd1dbba6128c
filemap: Convert generic_perform_write() to support large folios

Modelled after the loop in iomap_write_iter(), copy larger chunks from
userspace if the filesystem has created large folios.

[hch: use mapping_max_folio_size to keep supporting file systems that do
 not support large folios]

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Tested-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
mm/filemap.c