mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
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: 27fcec6c27
("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>
This commit is contained in:
parent
5957e0a28b
commit
a6c4162d84
@ -795,7 +795,7 @@ static inline void __set_bit_le64(size_t bit, __le64 *addr)
|
||||
|
||||
static inline void __clear_bit_le64(size_t bit, __le64 *addr)
|
||||
{
|
||||
addr[bit / 64] &= !cpu_to_le64(BIT_ULL(bit % 64));
|
||||
addr[bit / 64] &= ~cpu_to_le64(BIT_ULL(bit % 64));
|
||||
}
|
||||
|
||||
static inline bool test_bit_le64(size_t bit, __le64 *addr)
|
||||
|
Loading…
Reference in New Issue
Block a user