diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-11-05 15:08:36 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-11-05 15:08:36 -0400 |
commit | 5b84952401146fec9a181a40877352f7faf9ee7b (patch) | |
tree | 14225e5ee0a3a7b5926bdccb0baba7877aacab03 /libbcachefs/journal.h | |
parent | e87deba8e4a653df2abe5592eb3dc83cb7966410 (diff) |
Update bcachefs sources to 6d9ff21de7 bcachefs: Kill journal buf bloom filterv0.18
Diffstat (limited to 'libbcachefs/journal.h')
-rw-r--r-- | libbcachefs/journal.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libbcachefs/journal.h b/libbcachefs/journal.h index 99fd2536..c39cbbf1 100644 --- a/libbcachefs/journal.h +++ b/libbcachefs/journal.h @@ -141,7 +141,6 @@ static inline u64 journal_cur_seq(struct journal *j) return j->pin.back - 1; } -u64 bch2_inode_journal_seq(struct journal *, u64); void bch2_journal_set_has_inum(struct journal *, u64, u64); static inline int journal_state_count(union journal_res_state s, int idx) @@ -163,18 +162,6 @@ static inline void journal_state_inc(union journal_res_state *s) s->buf3_count += s->idx == 3; } -static inline void bch2_journal_set_has_inode(struct journal *j, - struct journal_res *res, - u64 inum) -{ - struct journal_buf *buf = &j->buf[res->idx]; - unsigned long bit = hash_64(inum, ilog2(sizeof(buf->has_inode) * 8)); - - /* avoid atomic op if possible */ - if (unlikely(!test_bit(bit, buf->has_inode))) - set_bit(bit, buf->has_inode); -} - /* * Amount of space that will be taken up by some keys in the journal (i.e. * including the jset header) |