diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-10-16 21:39:16 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:50 -0400 |
commit | f30dd8601262c74caf148fe834418ad7c931af66 (patch) | |
tree | adc08b67076b1c1e84501b4d69eea50c7871fc16 /fs/bcachefs/io.h | |
parent | ffb7c3d370a104d14ad0658b359cdf04ae679f04 (diff) | |
download | lwn-f30dd8601262c74caf148fe834418ad7c931af66.tar.gz lwn-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/io.h')
-rw-r--r-- | fs/bcachefs/io.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/bcachefs/io.h b/fs/bcachefs/io.h index be4aa3875360..379263a935fa 100644 --- a/fs/bcachefs/io.h +++ b/fs/bcachefs/io.h @@ -140,17 +140,17 @@ enum bch_read_flags { BCH_READ_IN_RETRY = 1 << 7, }; -int __bch2_read_extent(struct bch_fs *, struct bch_read_bio *, +int __bch2_read_extent(struct btree_trans *, struct bch_read_bio *, struct bvec_iter, struct bkey_s_c, unsigned, struct bch_io_failures *, unsigned); -static inline void bch2_read_extent(struct bch_fs *c, +static inline void bch2_read_extent(struct btree_trans *trans, struct bch_read_bio *rbio, struct bkey_s_c k, unsigned offset_into_extent, unsigned flags) { - __bch2_read_extent(c, rbio, rbio->bio.bi_iter, k, + __bch2_read_extent(trans, rbio, rbio->bio.bi_iter, k, offset_into_extent, NULL, flags); } |