Skip to content

Commit a6c4162

Browse files
Dan CarpenterKent Overstreet
authored andcommitted
bcachefs: fix ! vs ~ typo in __clear_bit_le64()
The ! was obviously intended to be ~. As it is, this function does the equivalent to: "addr[bit / 64] = 0;". Fixes: 27fcec6 ("bcachefs: Clear recovery_passes_required as they complete without errors") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 5957e0a commit a6c4162

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/bcachefs/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ static inline void __set_bit_le64(size_t bit, __le64 *addr)
795795

796796
static inline void __clear_bit_le64(size_t bit, __le64 *addr)
797797
{
798-
addr[bit / 64] &= !cpu_to_le64(BIT_ULL(bit % 64));
798+
addr[bit / 64] &= ~cpu_to_le64(BIT_ULL(bit % 64));
799799
}
800800

801801
static inline bool test_bit_le64(size_t bit, __le64 *addr)

0 commit comments

Comments
 (0)