diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-03-31 21:44:55 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:59 -0400 |
commit | 241e26369e1267be376490152ee2c52021b4321a (patch) | |
tree | 3959554638d2d03f6d25d8433d1964b1b3532424 /fs/bcachefs/btree_cache.c | |
parent | 9d8022db1ccfff6aaf1de6158c2a26b667c70a15 (diff) |
bcachefs: Don't flush btree writes more aggressively because of btree key cache
We need to flush the btree key cache when it's too dirty, because
otherwise the shrinker won't be able to reclaim memory - this is done by
journal reclaim. But journal reclaim also kicks btree node writes: this
meant that btree node writes were getting kicked much too often just
because we needed to flush btree key cache keys.
This patch splits journal pins into two different lists, and teaches
journal reclaim to not flush btree node writes when it only needs to
flush key cache keys.
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')
0 files changed, 0 insertions, 0 deletions