diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-04-05 17:01:02 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-05 20:42:37 +0200 |
commit | a6c4162d844dae4dbfea1bf9ecffcb852d3ed615 (patch) | |
tree | f9905c5d74f7a83998175fe121a43d894168cb52 /fs/bcachefs/util.h | |
parent | bcachefs: Fix rebalance from durability=0 device (diff) | |
download | linux-a6c4162d844dae4dbfea1bf9ecffcb852d3ed615.tar.xz linux-a6c4162d844dae4dbfea1bf9ecffcb852d3ed615.zip |
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: 27fcec6c27ca ("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>
Diffstat (limited to 'fs/bcachefs/util.h')
-rw-r--r-- | fs/bcachefs/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h index b7e7c29278fc..de639e8a3ab5 100644 --- a/fs/bcachefs/util.h +++ b/fs/bcachefs/util.h @@ -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) |