bcachefs: Limit bios in writepages path to 256M
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 20 Oct 2019 04:22:03 +0000 (00:22 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:30 +0000 (17:08 -0400)
commita94407434b7a3b577a7605f0bd999d98acad6d23
tree62cdd6694ec86f532bb3c29798de9fb841ed1938
parent71603f1ffe03d2409d591e4647377a415376a6b9
bcachefs: Limit bios in writepages path to 256M

This works around a bug where bio_full() doesn't check for
bio->bi_iter.bi_size overflowing - and, we don't really want to build
bios that are that big anyways.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-io.c