]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: compression workspaces should be indexed by opt, not type
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 17 Nov 2024 02:03:53 +0000 (21:03 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:18 +0000 (01:36 -0500)
commit6a4ce7a92fcc12762154c7f695c969787780c7c8
tree7addc132ab8bb782c79c1580aa8950ecb6a8e965
parentcec51e0a5d6d48eeeef6bfcfb8c5e91147dcdddb
bcachefs: compression workspaces should be indexed by opt, not type

type includes lz4 and lz4_old, which do not get different compression
workspaces, and incompressible, a fake type - BCH_COMPRESSION_OPTS() is
the correct enum to use.

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