summaryrefslogtreecommitdiff
path: root/fs/bcachefs/compress.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-04-12 22:17:00 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2024-04-14 05:48:17 +0300
commit9abb6dd7ce5a261f7aebf6f396b50a63db71133f (patch)
tree81d697fe0dd172159d9da17c6f69a494681e6f93 /fs/bcachefs/compress.h
parentba8ed36e72033dd6b89d44145f323e6c4508bfc9 (diff)
downloadlinux-9abb6dd7ce5a261f7aebf6f396b50a63db71133f.tar.xz
bcachefs: Standardize helpers for printing enum strs with bounds checks
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/compress.h')
-rw-r--r--fs/bcachefs/compress.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/bcachefs/compress.h b/fs/bcachefs/compress.h
index 58c2eb45570f..607fd5e232c9 100644
--- a/fs/bcachefs/compress.h
+++ b/fs/bcachefs/compress.h
@@ -47,14 +47,6 @@ static inline enum bch_compression_type bch2_compression_opt_to_type(unsigned v)
return __bch2_compression_opt_to_type[bch2_compression_decode(v).type];
}
-static inline void bch2_prt_compression_type(struct printbuf *out, enum bch_compression_type type)
-{
- if (type < BCH_COMPRESSION_TYPE_NR)
- prt_str(out, __bch2_compression_types[type]);
- else
- prt_printf(out, "(invalid compression type %u)", type);
-}
-
int bch2_bio_uncompress_inplace(struct bch_fs *, struct bio *,
struct bch_extent_crc_unpacked *);
int bch2_bio_uncompress(struct bch_fs *, struct bio *, struct bio *,