]> www.infradead.org Git - users/hch/misc.git/commit
iomap: limit buffered I/O size to 128M
authorChristoph Hellwig <hch@lst.de>
Mon, 3 Feb 2025 09:13:23 +0000 (10:13 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 3 Feb 2025 09:21:33 +0000 (10:21 +0100)
commit3084f2c7f0c147387ea2af6aa9112514b260c809
treefd971f86399ae1de178a61dda0d3acacb4545b3a
parentda5270dc0720e540e0f6a987b6b31bb82e95bf6a
iomap: limit buffered I/O size to 128M

Currently iomap can build extremely large bios (I've seen sizes
up to 480MB).  Limit this to a lower bound so that the soon to
be added per-ioend integrity buffer doesn't go beyond what the
page allocator can support.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/iomap/buffered-io.c