bcachefs: Ensure we don't exceed encoded_extent_max
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 15:19:34 +0000 (11:19 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 31 Oct 2023 16:18:37 +0000 (12:18 -0400)
commit2d39081291470750cc605c917531d7cd85aebf94
tree04626dd638b12ed50c047e04a09d4e3eb564612f
parente677179b35b7ecbe3cefe33011b69d45171e5e9f
bcachefs: Ensure we don't exceed encoded_extent_max

The write path may (rarely) see an encoded (checksummed) extent that
exceeds encoded_extent_max - this can happen when we're moving an
existing extent that was not checksummed, but was given a checksum by
bch2_write_rechecksum().

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