diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-05-25 14:57:06 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:40 -0400 |
commit | 00b8ccf7074fddb5607a26673f331ceac2ecd319 (patch) | |
tree | 2d8468865754bd7075b2370706423c4fcf70b450 /fs/bcachefs/keylist.h | |
parent | c823c3390bd2f325f78bab493f84ea8a84f5ddc2 (diff) | |
download | linux-00b8ccf7074fddb5607a26673f331ceac2ecd319.tar.gz linux-00b8ccf7074fddb5607a26673f331ceac2ecd319.tar.bz2 linux-00b8ccf7074fddb5607a26673f331ceac2ecd319.zip |
bcachefs: Interior btree updates are now fully transactional
We now update the alloc info (bucket sector counts) atomically with
journalling the update to the interior btree nodes, and we also set new
btree roots atomically with the journalled part of the btree update.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/keylist.h')
-rw-r--r-- | fs/bcachefs/keylist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/keylist.h b/fs/bcachefs/keylist.h index a7ff86b08abc..195799bb20bc 100644 --- a/fs/bcachefs/keylist.h +++ b/fs/bcachefs/keylist.h @@ -36,14 +36,14 @@ static inline bool bch2_keylist_empty(struct keylist *l) return l->top == l->keys; } -static inline size_t bch_keylist_u64s(struct keylist *l) +static inline size_t bch2_keylist_u64s(struct keylist *l) { return l->top_p - l->keys_p; } static inline size_t bch2_keylist_bytes(struct keylist *l) { - return bch_keylist_u64s(l) * sizeof(u64); + return bch2_keylist_u64s(l) * sizeof(u64); } static inline struct bkey_i *bch2_keylist_front(struct keylist *l) |