summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/buckets.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-10-16 21:39:16 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:50 -0400
commitf30dd8601262c74caf148fe834418ad7c931af66 (patch)
treeadc08b67076b1c1e84501b4d69eea50c7871fc16 /fs/bcachefs/buckets.h
parentffb7c3d370a104d14ad0658b359cdf04ae679f04 (diff)
downloadlinux-f30dd8601262c74caf148fe834418ad7c931af66.tar.gz
linux-f30dd8601262c74caf148fe834418ad7c931af66.tar.bz2
linux-f30dd8601262c74caf148fe834418ad7c931af66.zip
bcachefs: Don't write bucket IO time lazily
With the btree key cache code, we don't need to update the alloc btree lazily - and this will mean we can remove the bch2_alloc_write() call in the shutdown path. Future work: we really need to expend the bucket IO clocks from 16 to 64 bits, so that we don't have to rescale them. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/buckets.h')
-rw-r--r--fs/bcachefs/buckets.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/bcachefs/buckets.h b/fs/bcachefs/buckets.h
index 7ee63413f83c..2e9c4e46c61c 100644
--- a/fs/bcachefs/buckets.h
+++ b/fs/bcachefs/buckets.h
@@ -58,12 +58,6 @@ static inline struct bucket *bucket(struct bch_dev *ca, size_t b)
return __bucket(ca, b, false);
}
-static inline void bucket_io_clock_reset(struct bch_fs *c, struct bch_dev *ca,
- size_t b, int rw)
-{
- bucket(ca, b)->io_time[rw] = c->bucket_clock[rw].hand;
-}
-
static inline u16 bucket_last_io(struct bch_fs *c, struct bucket *g, int rw)
{
return c->bucket_clock[rw].hand - g->io_time[rw];