]> git.dujemihanovic.xyz Git - linux.git/commit
iomap: Copy larger chunks from userspace
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 20 May 2023 16:13:20 +0000 (12:13 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 24 Jul 2023 22:04:30 +0000 (18:04 -0400)
commit5d8edfb900d55db7dbf2dbf325bfb9fdb863ec72
tree97191965a56afcb9f875fcc8dfd44a1bec80136f
parentd6bb59a9444d218dc60dee3b45fd93c0d4f5e123
iomap: Copy larger chunks from userspace

If we have a large folio, we can copy in larger chunks than PAGE_SIZE.
Start at the maximum page cache size and shrink by half every time we
hit the "we are short on memory" problem.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/buffered-io.c