bcachefs: opts->compression can now also be applied in the background
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 16 Jan 2024 21:20:21 +0000 (16:20 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 21 Jan 2024 18:27:10 +0000 (13:27 -0500)
commitd7e77f53e90e1eb87838eed7c651531427b9114a
treef5e54a0751c8b51d9dcbd8522af1fb70e26331bf
parentec4edd7b9d2038a97e0ba3fad8fc8492b0d12d35
bcachefs: opts->compression can now also be applied in the background

The "apply this compression method in the background" paths now use the
compression option if background_compression is not set; this means that
setting or changing the compression option will cause existing data to
be compressed accordingly in the background.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/data_update.c
fs/bcachefs/extents.c
fs/bcachefs/extents.h
fs/bcachefs/io_misc.c
fs/bcachefs/io_write.c
fs/bcachefs/move.c
fs/bcachefs/opts.h
fs/bcachefs/rebalance.c
fs/bcachefs/reflink.c
fs/bcachefs/sysfs.c
fs/bcachefs/xattr.c