From cdce109431f30108665a7de72b542af7f02cf966 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 11 Mar 2024 21:15:26 -0400 Subject: bcachefs: reconstruct_alloc cleanup Now that we've got the errors_silent mechanism, we don't have to check if the reconstruct_alloc option is set all over the place. Also - users no longer have to explicitly select fsck and fix_errors. Signed-off-by: Kent Overstreet --- fs/bcachefs/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fs/bcachefs/util.h') diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h index adff17f6f524..4aba415ab5b8 100644 --- a/fs/bcachefs/util.h +++ b/fs/bcachefs/util.h @@ -864,4 +864,9 @@ static inline int copy_from_user_errcode(void *to, const void __user *from, unsi #endif +static inline void __set_bit_le64(size_t bit, __le64 *addr) +{ + addr[bit / 64] |= cpu_to_le64(BIT_ULL(bit % 64)); +} + #endif /* _BCACHEFS_UTIL_H */ -- cgit v1.2.3