diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-11-22 20:15:33 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2022-12-20 20:01:27 -0500 |
commit | b71841e54343e7e7095dd8b66cae1e6e3fa6b8d5 (patch) | |
tree | 15bc25dc97410179810933cdbe5c3f29a2c29f03 /fs/bcachefs/super.c | |
parent | 113119721d67febf0d7e54bc4fbc8d980d6d0a71 (diff) |
bcachefs: Bring back key cache for inodesbcachefs-v6.0
The btree key cache now works for snapshots btrees, where doing a lookup
requires searching through keys in older snapshots - we can finaly
re-enable it for inodes.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super.c')
-rw-r--r-- | fs/bcachefs/super.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 30818e838814..f474f2f298ac 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -743,9 +743,6 @@ static struct bch_fs *bch2_fs_alloc(struct bch_sb *sb, struct bch_opts opts) bch2_opts_apply(&c->opts, opts); - /* key cache currently disabled for inodes, because of snapshots: */ - c->opts.inodes_use_key_cache = 0; - c->btree_key_cache_btrees |= 1U << BTREE_ID_alloc; if (c->opts.inodes_use_key_cache) c->btree_key_cache_btrees |= 1U << BTREE_ID_inodes; |