bcachefs: Fix moving compressed data
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 9 Jul 2019 15:16:33 +0000 (11:16 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:23 +0000 (17:08 -0400)
commita6f4d5bb249cf6ac44d1a83c72584402b7e5f6ed
treec42f9f778643aee3098fb1a8f50e075aeb55bf88
parent0fd7263e2e55d43317e85e9f7a4e67de9fa0ec90
bcachefs: Fix moving compressed data

bio_uncompress_inplace() used to potentially need to extend the bio to
be big enough for the uncompressed data, which has become problematic
with multipage bvecs - but, the move extent path actually already
allocated the bios to be big enough for the uncompressed data.

The promote path needed to be fixed, though.

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