diff options
Diffstat (limited to 'libbcachefs/compress.c')
-rw-r--r-- | libbcachefs/compress.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbcachefs/compress.c b/libbcachefs/compress.c index c9ca7cce..6b17f7cc 100644 --- a/libbcachefs/compress.c +++ b/libbcachefs/compress.c @@ -643,7 +643,8 @@ static int __bch2_fs_compress_init(struct bch_fs *c, u64 features) static u64 compression_opt_to_feature(unsigned v) { unsigned type = bch2_compression_decode(v).type; - return 1ULL << bch2_compression_opt_to_feature[type]; + + return BIT_ULL(bch2_compression_opt_to_feature[type]); } int bch2_fs_compress_init(struct bch_fs *c) |