From f3976e3733e97a0e96f5fc6349d1e82b25116043 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 11 Aug 2023 22:22:59 -0400 Subject: Update bcachefs sources to b0788c47d9 bcachefs: Fix check_version_upgrade() --- libbcachefs/compress.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libbcachefs/compress.c') diff --git a/libbcachefs/compress.c b/libbcachefs/compress.c index c9ca7cc..6b17f7c 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) -- cgit v1.2.3