diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-12 02:15:26 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-14 02:22:26 +0100 |
commit | cdce109431f30108665a7de72b542af7f02cf966 (patch) | |
tree | 547b0649ca008c26eedcbd904146fb90e3841d44 /fs/bcachefs/util.h | |
parent | bcachefs: fix bch_folio_sector padding (diff) | |
download | linux-cdce109431f30108665a7de72b542af7f02cf966.tar.xz linux-cdce109431f30108665a7de72b542af7f02cf966.zip |
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 <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r-- | fs/bcachefs/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |