summaryrefslogtreecommitdiff
path: root/fs/bcachefs/btree_io.c
AgeCommit message (Collapse)Author
2019-04-04bcachefs: Rewrite journal_seq_blacklist machineryKent Overstreet
Now, we store blacklisted journal sequence numbers in the superblock, not the journal: this helps to greatly simplify the code, and more importantly it's now implemented in a way that doesn't require all btree nodes to be visited before starting the journal - instead, we unconditionally blacklist the next 4 journal sequence numbers after an unclean shutdown.
2019-04-03bcachefs: Only get btree iters from btree transactionsKent Overstreet
2019-04-03bcachefs: Add time stats for btree updatesKent Overstreet
2019-04-03bcachefs: More allocator startup improvementsKent Overstreet
2019-04-03bcachefs: Make bkey types globally uniqueKent Overstreet
this lets us get rid of a lot of extra switch statements - in a lot of places we dispatch on the btree node type, and then the key type, so this is a nice cleanup across a lot of code. Also improve the on disk format versioning stuff.
2019-04-03bcachefs: split out bkey_sort.cKent Overstreet
2019-04-03bcachefs: revamp to_text methodsKent Overstreet
2019-04-03bcachefs: Some fixes for building in userspaceKent Overstreet
userspace allocators don't align allocations as nicely as kernel allocators, which meant that in some cases we weren't allocating big enough bvec arrays - just make the calculations more rigorous and explicit to fix it.
2019-04-03bcachefs: new avoid mechanism for io retriesKent Overstreet
2019-04-03bcachefs: add functionality for heaps to update backpointersKent Overstreet
2019-04-03bcachefs: bch2_extent_drop_ptrs()Kent Overstreet
2019-04-03bcachefs: extent_ptr_decodedKent Overstreet
2019-04-03bcachefs: Comparison function cleanupsKent Overstreet
2019-04-03bcachefs: lift ordering restriction on 0 size extentsKent Overstreet
This lifts the restriction that 0 size extents must not overlap with other extents, which means we can now sort extents and non extents the same way, and will let us simplify a bunch of other stuff as well. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2019-04-03bcachefs: bkey_written()Kent Overstreet
also cleanups of btree node offsets
2019-04-03bcachefs: Fix a bug when dropping invalid btree keysKent Overstreet
There was a missing set_btree_bset_end() call, leading to popped assertions later. Also add a quick and dirty debug option for injecting invalid keys. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2019-04-03bcachefs: BTREE_ITER_TYPEKent Overstreet
also factor out bch2_btree_iter_checks()
2019-04-03bcachefs: BCH_NAME_MAXKent Overstreet
also fix some dirent bugs
2019-04-03bcachefs: Initial commitKent Overstreet
Fork of drivers/md/bcache Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>