diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-03-07 19:46:10 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:41 -0400 |
commit | 2ca88e5ad9b29624ea1467ef7fcc583c928fd783 (patch) | |
tree | c517d75d448c2a450896090c8bb0fcbeef78afd3 /fs/bcachefs/Makefile | |
parent | 451570a5bc5f72c4c6442631d158f0c11cb3daa8 (diff) | |
download | linux-stable-2ca88e5ad9b29624ea1467ef7fcc583c928fd783.tar.gz linux-stable-2ca88e5ad9b29624ea1467ef7fcc583c928fd783.tar.bz2 linux-stable-2ca88e5ad9b29624ea1467ef7fcc583c928fd783.zip |
bcachefs: Btree key cache
This introduces a new kind of btree iterator, cached iterators, which
point to keys cached in a hash table. The cache also acts as a write
cache - in the update path, we journal the update but defer updating the
btree until the cached entry is flushed by journal reclaim.
Cache coherency is for now up to the users to handle, which isn't ideal
but should be good enough for now.
These new iterators will be used for updating inodes and alloc info (the
alloc and stripes btrees).
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/Makefile')
-rw-r--r-- | fs/bcachefs/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/Makefile b/fs/bcachefs/Makefile index 6d5ad877fb07..ffe4db45e1c9 100644 --- a/fs/bcachefs/Makefile +++ b/fs/bcachefs/Makefile @@ -13,6 +13,7 @@ bcachefs-y := \ btree_gc.o \ btree_io.o \ btree_iter.o \ + btree_key_cache.o \ btree_update_interior.o \ btree_update_leaf.o \ buckets.o \ |