aboutsummaryrefslogtreecommitdiff
path: root/fs/bcachefs/journal.h
diff options
context:
space:
mode:
authorGravatar Kent Overstreet <kent.overstreet@gmail.com> 2021-11-03 22:33:32 -0400
committerGravatar Kent Overstreet <kent.overstreet@linux.dev> 2023-10-22 17:09:16 -0400
commit0e030f5e2014bf9a33e977820cf64fce4258cf1d (patch)
treef9c25cb4a721ce51518a134380ac09bb78a1507a /fs/bcachefs/journal.h
parentbcachefs: Add journal_seq to inode & alloc keys (diff)
downloadlinux-0e030f5e2014bf9a33e977820cf64fce4258cf1d.tar.gz
linux-0e030f5e2014bf9a33e977820cf64fce4258cf1d.tar.bz2
linux-0e030f5e2014bf9a33e977820cf64fce4258cf1d.zip
bcachefs: Kill journal buf bloom filter
This was used for recording which inodes have been modified by in flight journal writes, but was broken and has been superceded. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/journal.h')
-rw-r--r--fs/bcachefs/journal.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/fs/bcachefs/journal.h b/fs/bcachefs/journal.h
index 99fd253648bf..2cfb6c7f0d14 100644
--- a/fs/bcachefs/journal.h
+++ b/fs/bcachefs/journal.h
@@ -141,9 +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)
{
switch (idx) {
@@ -163,18 +160,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)