diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-04-06 22:33:19 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:59 +0300 |
commit | 2177147b39098e6f08b3d8d45bbcf7dedd7ebdad (patch) | |
tree | 886102507f7859ac07630f897a8a1f31f1fb590a /fs/bcachefs/btree_cache.c | |
parent | 241e26369e1267be376490152ee2c52021b4321a (diff) | |
download | linux-2177147b39098e6f08b3d8d45bbcf7dedd7ebdad.tar.xz |
bcachefs: Improve bset compaction
The previous patch that fixed btree nodes being written too aggressively
now meant that we weren't sorting btree node bsets optimally - this
patch fixes that.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_cache.c')
-rw-r--r-- | fs/bcachefs/btree_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_cache.c b/fs/bcachefs/btree_cache.c index 2ec668c3427e..8ed8610796fb 100644 --- a/fs/bcachefs/btree_cache.c +++ b/fs/bcachefs/btree_cache.c @@ -215,7 +215,7 @@ static int __btree_node_reclaim(struct bch_fs *c, struct btree *b, bool flush) if (bch2_verify_btree_ondisk) bch2_btree_node_write(c, b, SIX_LOCK_intent); else - __bch2_btree_node_write(c, b, SIX_LOCK_read); + __bch2_btree_node_write(c, b); /* wait for any in flight btree write */ btree_node_wait_on_io(b); |