bcachefs: Don't write bucket IO time lazily
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 17 Oct 2020 01:39:16 +0000 (21:39 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:50 +0000 (17:08 -0400)
commitf30dd8601262c74caf148fe834418ad7c931af66
treeadc08b67076b1c1e84501b4d69eea50c7871fc16
parentffb7c3d370a104d14ad0658b359cdf04ae679f04
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>
fs/bcachefs/alloc_background.c
fs/bcachefs/alloc_background.h
fs/bcachefs/alloc_foreground.c
fs/bcachefs/buckets.h
fs/bcachefs/fs-io.c
fs/bcachefs/io.c
fs/bcachefs/io.h
fs/bcachefs/move.c