Kent Overstreet
bb74624daa
Update bcachefs sources to a5c0e1bb30 bcachefs: Clean up bch2_btree_and_journal_walk()
2021-04-30 18:23:38 -04:00
Kent Overstreet
a14d39d7ac
bit_spinlocks now use futexes
...
Spinlocks aren't a good idea in userspace, where we can't actually
disable preemption.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-26 20:18:47 -04:00
Kent Overstreet
edc3ffe8f2
Update bcachefs sources to 8d3093bd9b bcachefs: Evict btree nodes we're deleting
2021-04-26 20:18:47 -04:00
Kent Overstreet
78905d7540
Change cmd_dump to use FSCK_OPT_NO
...
We just want cmd_dump to walk metadata, not fix errors - the mark and
sweep code is being fixed to make sure it continues on error.
2021-04-24 17:13:50 -04:00
Kent Overstreet
cb84ad03a5
cmd_list improvements
...
- update helptext
- add -l (level) parameter
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-24 16:55:06 -04:00
Kent Overstreet
f8c4bc591e
Update bcachefs sources to e6fa8eaa1b bcachefs: Fix bch2_verify_keylist_sorted
2021-04-24 12:11:47 -04:00
Kent Overstreet
f87850496e
Update bcachefs sources to 3c41353bc1 bcachefs: Fix bch2_verify_keylist_sorted
2021-04-24 01:37:09 -04:00
Kent Overstreet
30f72f75f5
Add a real mempool implementation
...
Imported from the kernel.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-24 01:36:43 -04:00
Kent Overstreet
ceac31bcb6
Update bcachefs sources to fe72e70682 bcachefs: Fix for btree_gc repairing interior btree ptrs
2021-04-19 21:26:48 -04:00
Kent Overstreet
8ba5e814fd
Fix some small memory leaks
...
Found with -fsanitize=leak
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-16 17:28:40 -04:00
Kent Overstreet
967c870498
Update bcachefs sources to 8eca47e4d5 bcachefs: Improved check_directory_structure()
2021-04-13 10:24:15 -04:00
Kent Overstreet
b422ff58ba
Update bcachefs sources to a8b3ce7599 fixup! bcachefs: Eliminate more PAGE_SIZE uses
2021-04-12 11:48:45 -04:00
Kent Overstreet
816ec60516
Add --force-if-data-lost to bcachefs device set-state
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-09 17:42:26 -04:00
Kent Overstreet
d340c4f4a8
Fix krealloc() alignment
...
bcachefs assumes kmalloc & krealloc give out allocations that are
naturally aligned, like the kernel allocators do.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-08 15:48:45 -04:00
Kent Overstreet
ce906d661e
Update bcachefs sources to 6a3927a96b fixup! bcachefs: Don't use write side of mark_lock in journal write path
2021-04-04 22:25:32 -04:00
Kent Overstreet
08e14f84d9
Add compatible feature bits to bch2_sb_print()
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-04-04 22:18:01 -04:00
Kent Overstreet
209695dedf
Update bcachefs sources to f26267fc82 bcachefs: kill bset_tree->max_key
2021-04-04 22:15:29 -04:00
Kent Overstreet
f46437f06e
bcaachefs device set-state can now work by id
2021-04-02 23:35:05 -04:00
Kent Overstreet
98844616f6
If we failed to read /proc/meminfo, just run the shrinkers.
2021-03-31 13:04:34 -04:00
Kent Overstreet
40e14938ee
Update bcachefs sources to 9922afc8b6 bcachefs: Add repair code for out of order keys in a btree node.
2021-03-29 00:22:49 -04:00
Kent Overstreet
a2094890a9
Update bcachefs sources to 18686af684 bcachefs: Inode backpointers
2021-03-29 00:22:38 -04:00
Kent Overstreet
bb6eccc2ec
Increase default superblock size to 1MB
...
Also - add an option to bcachefs format for specifying it,
--superblock_size
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-24 22:40:25 -04:00
Kent Overstreet
c88113e255
Update bcachefs sources to ad68801b93 bcachefs: Use pcpu mode of six locks for interior nodes
2021-03-24 22:13:00 -04:00
Kent Overstreet
9f69a652dc
Update bcachefs sources to c7defb5793 bcachefs: Split btree_iter_traverse and bch2_btree_iter_traverse()
2021-03-24 19:26:47 -04:00
Kent Overstreet
1f0d52aa06
Set features in format
...
This is a fixup for d3dc47271b
Add format options for --no-initialize
and specifying the metadata version
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-22 17:24:13 -04:00
Kent Overstreet
11098ae37a
Update bcachefs sources to 0a9f0fc68a bcachefs: Don't unconditially version_upgrade in initialize
2021-03-21 16:44:44 -04:00
Kent Overstreet
d3dc47271b
Add format options for --no-initialize and specifying the metadata version
...
These are only to be used for tests.
2021-03-21 16:21:51 -04:00
Kent Overstreet
8a69e01aeb
Add the version_min field to cmd_show_super
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-03-21 15:59:21 -04:00
Kent Overstreet
cc92b0f5a2
New data job command
...
This adds a new subcommand, bcachefs data job, that gives more direct
access to the data job/ioctl functionality, and hooks up the new rewrite
old nodes data job.
2021-03-16 21:46:21 -04:00
Kent Overstreet
aa0ddf3cf9
Update bcachefs sources to 242d37cbd0 bcachefs: Kill btree_iter_pos_changed()
2021-03-16 21:46:18 -04:00
Kent Overstreet
e7c4380a89
Update bcachefs sources to 63924135a1 bcachefs: Have fsck check for stripe pointers matching stripe
2021-03-12 16:56:43 -05:00
Kent Overstreet
fb2d506f6f
Don't die in kthread_create()
...
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-02-24 00:41:09 -05:00
Kent Overstreet
9e5d774875
Update bcachefs sources to e2b8120595 bcachefs: Use x-macros for more enums
2021-02-20 22:34:09 -05:00
Kent Overstreet
b64369c59f
Update bcachefs sources to 9b77e72c47 bcachefs: Extents may now cross btree node boundaries
2021-02-20 03:28:11 -05:00
Kent Overstreet
d51534ee27
Update bcachefs sources to dfb7dc100d bcachefs: Drop invalid stripe ptrs in fsck
2021-02-19 16:20:44 -05:00
koverstreet
fc072054a9
Merge pull request #43 from jpsollie/koverstreet_version
...
Add metadata_target functionality
2021-02-17 14:30:00 -05:00
jpsollie
38a93ad6b2
Merge pull request #16 from koverstreet/master
...
update
2021-02-16 13:59:58 +01:00
Kent Overstreet
a437f5fc84
Update bcachefs sources to 199bfbed8a lib/generic-radix-tree.c: Don't overflow in peek()
2021-02-12 21:43:09 -05:00
Kent Overstreet
c28f93bc52
generix radix trees: Don't overflow in peek()
2021-02-12 21:42:46 -05:00
Kent Overstreet
868abec1ab
Update bcachefs sources to 5e73602f6c bcachefs: Fix for fsck hanging
2021-02-12 16:02:52 -05:00
jpsollie
3c7db5cec4
Add metadata_target functionality
...
While metadata_target was an option in bcachefs and the fs driver knows about it,
it was never parsed by the bcachefs format command.
This commit fixes the issue
2021-02-12 07:14:36 +01:00
Kent Overstreet
612f6b9ab7
Update bcachefs sources to 79847e4824 bcachefs: Fixes/improvements for journal entry reservations
2021-02-03 15:26:03 -05:00
Kent Overstreet
4064aa126e
Update bcachefs sources to 26409a8f75 bcachefs: Journal updates to dev usage
2021-02-02 16:07:59 -05:00
Kent Overstreet
7eef5f46dd
Update bcachefs sources to ea3414eed5 fixup! bcachefs: Improve diagnostics when journal entries are missing
2021-01-29 15:33:24 -05:00
Kent Overstreet
7740db24f7
Update bcachefs sources to bee34d805c bcachefs: Repair bad data pointers
2021-01-28 16:16:51 -05:00
Kent Overstreet
19f921604d
Update bcachefs sources to ffc900d593 fixup! bcachefs: Mark superblocks transactionally
2021-01-26 21:00:48 -05:00
Kent Overstreet
0e05fa6dfe
Add device index to show-super
2021-01-26 20:48:58 -05:00
Kent Overstreet
9fce394ca6
Update bcachefs sources to 313b24b652 bcachefs: Fix an assertion
2021-01-25 19:05:19 -05:00
Kent Overstreet
4a4a7e01d7
Ensure fields don't collide in bcachefs fs usage
...
Also, make them a bit bigger.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2021-01-15 16:43:16 -05:00
Kent Overstreet
f476c4d128
Update bcachefs sources to 7d57e9b703 bcachefs: Run jset_validate in write path as well
2021-01-15 15:24:04 -05:00