Commit Graph

889 Commits

Author SHA1 Message Date
Kent Overstreet
8b23ea867a Update bcachefs sources to ac53c8857f fixup! bcachefs: Use a genradix for reading journal entries 2022-04-09 14:02:54 -04:00
Kent Overstreet
986533d8d5 Update bcachefs sources to 6ddf061e68 bcachefs: Use a genradix for reading journal entries 2022-04-08 19:26:30 -04:00
Kent Overstreet
7f77afa955 Update bcachefs sources to d3da360412 bcachefs: Fold bucket_state in to BCH_DATA_TYPES() 2022-04-07 20:56:33 -04:00
Kent Overstreet
58867de5bd New tool for killing btree nodes on a filesystem
To be used by error injection tests.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-04-07 19:25:50 -04:00
Kent Overstreet
e05755a9fc Update bcachefs sources to 98a1bff393 bcachefs: Topology repair fixes 2022-04-07 17:52:51 -04:00
Kent Overstreet
941075cb57 Update bcachefs sources to d2e0889128 bcachefs: fsck: Work around transaction restarts 2022-04-06 14:43:08 -04:00
Kent Overstreet
30306c5aa6 Update bcachefs sources to 07bac0c685 bcachefs: fsck: Work around transaction restarts 2022-04-06 14:42:00 -04:00
Kent Overstreet
790ca9522a Update bcachefs sources to e027cf9aa0 fixup! bcachefs: Defer checking of alloc -> lru refs until after RW 2022-04-06 14:13:15 -04:00
Kent Overstreet
498874fdb7 Update bcachefs sources to 91e6c3e0d5 bcachefs: Gap buffer for journal keys 2022-04-04 13:48:45 -04:00
Kent Overstreet
32aabbc4e5 Update bcachefs sources to ab3b6e7dd6 bcachefs: Fix pr_buf() calls 2022-04-02 16:36:29 -04:00
Kent Overstreet
70f2681838 Update bcachefs sources to 5e392aed7a bcachefs: Kill bch2_alloc_write() 2022-03-31 16:57:08 -04:00
Kent Overstreet
cc1b64e992 Flush standard output before popping assertions
Seeing error messages before we die generally makes assertions easier to
debug.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-30 23:20:39 -04:00
Kent Overstreet
6692c6f9d3 cmd_list_journal: Tweak for new log entries
We use entry->level to denote which log entries indicate the start of a
transaction - this updates cmd_list_journal to format them correctly.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-30 20:31:28 -04:00
Kent Overstreet
e240b4ae86 Update bcachefs sources to f638850417 bcachefs: bch2_trans_log_msg() 2022-03-30 17:40:37 -04:00
Kent Overstreet
59abea5776 cmd_list_journal: Make output more readable
This puts a blank line before log entries, which are used to denote the
start of a transaction commit.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-29 15:07:59 -04:00
Kent Overstreet
733a17f637 Merge remote-tracking branch 'holmanb/holmanb/suppressions' 2022-03-28 19:24:10 -04:00
Kent Overstreet
0fda4a709a Merge remote-tracking branch 'holmanb/holmanb/keyutils-dep-check' 2022-03-28 19:23:09 -04:00
Kent Overstreet
61d31d7a02 Update bcachefs sources to 7786034caa bcachefs: Fix for freespace version upgrade path 2022-03-28 18:44:48 -04:00
Kent Overstreet
fd249e130f Update bcachefs sources to bba7493dda bcachefs: Fix error path in bch2_snapshot_set_equiv() 2022-03-28 16:32:53 -04:00
Kent Overstreet
c5183ea57f Heap code fix
When deleting an entry from a heap that was at entry h->used - 1, we'd
end up calling heap_sift() on an entry outside the heap - the entry we
just removed - which would end up re-adding it to the heap and deleting
something we didn't want to delete. Oops...

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-28 12:39:12 -04:00
Brett Holman
a0b523a679 Add valgrind suppressions:
- urcu
- rebalance thread
2022-03-24 11:41:10 -06:00
Brett Holman
74c00c643e check for libkeyutils with pkg-config 2022-03-24 11:16:35 -06:00
Kent Overstreet
f3cdace86c cmd_format: verbose no longer on by default
Instead, we now have a -v option

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-22 14:08:40 -04:00
Brett Holman
5c050d2213 fix example 2022-03-22 11:59:36 -06:00
Kent Overstreet
1a9d73b5c0 Shrinker improvements
After memory allocation failure, don't rely on /proc/meminfo to figure
out how much memory we should free - instead unconditionally free 1/8th
of each cache.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-21 20:20:09 -04:00
Kent Overstreet
205d75307a Better bio_alloc_bioset()
bio_alloc_bioset() now uses mempools, so we don't segfault on memory
allocation failure.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-21 18:21:31 -04:00
Kent Overstreet
b2a9318aa8 Update bcachefs sources to 367a8fad45 bcachefs: Reset journal flush delay to default value if zeroed 2022-03-21 03:06:23 -04:00
Kent Overstreet
74148a8ee5 Update bcachefs sources to 0e705f5944 fixup! bcachefs: Refactor bch2_btree_node_mem_alloc() 2022-03-21 02:13:02 -04:00
Kent Overstreet
e76dbf1abd cmd_debug: Add -j for dumping entire journal
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-20 02:39:38 -04:00
Kent Overstreet
3765483ff0 Update bcachefs sources to f05b3c1af9 bcachefs: Improve bucket_alloc_fail tracepoint 2022-03-13 19:21:13 -04:00
Kent Overstreet
d34e731082 Update bcachefs sources to e48731a188 bcachefs: Fix BTREE_TRIGGER_WANTS_OLD_AND_NEW 2022-03-13 19:20:59 -04:00
Kent Overstreet
bf7924f552 Add freezable_schedule() to linux kernel shim
Also fix the freezable_schedule_timeout() macro.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-10 15:38:02 -05:00
Kent Overstreet
8c60ee37e7 Make filesystem initialization verbose
Initializing the freespace btree may take some time, so let's make that
visible.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-10 15:37:27 -05:00
Kent Overstreet
3e2e3d468e Update bcachefs sources to e318fabeb4 bcachefs: Fix pr_tab_rjust() 2022-03-06 14:07:16 -05:00
Kent Overstreet
b797b087a9 Update bcachefs sources to 259ff91605 bcachefs: Don't keep around btree_paths unnecessarily 2022-03-05 17:06:24 -05:00
Kent Overstreet
4568914cfb Update bcachefs sources to b64d9b7b19 bcachefs: Don't arm journal->write_work when journal entry !open 2022-03-05 13:46:11 -05:00
Kent Overstreet
1ffc9b4554 Update bcachefs sources to f67089dc9b bcachefs: Convert bch2_sb_to_text to master option list 2022-03-05 12:09:12 -05:00
Kent Overstreet
465e90314c cmd_list_journal: Indicate which journal entries are blacklisted
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-03-02 15:25:57 -05:00
Kent Overstreet
87f685d129 Update bcachefs sources to 8ffb42b3d0 bcachefs: Finish writing journal after journal error 2022-03-01 15:45:36 -05:00
Kent Overstreet
fd1b84975b Update bcachefs sources to ffad51ba45 bcachefs: Fix a use after free 2022-02-27 16:35:20 -05:00
Kent Overstreet
03498f9464 Update bcachefs sources to 04036b4910 bcachefs: Fix a memory leak 2022-02-27 12:01:32 -05:00
Aleksei Kharlamov
b1a2ab6eef Heap-allocate printbufs
Signed-off-by: Aleksei Kharlamov <aleksei@devass.club>
2022-02-26 21:31:27 +01:00
Aleksei Kharlamov
63805882d4 Update bcachefs sources to 31718a2: bcachefs: Don't spin in journal reclaim
Signed-off-by: Aleksei Kharlamov <aleksei@devass.club>
2022-02-26 21:31:11 +01:00
Kent Overstreet
5528e3ae62 Update bcachefs sources to 9b3aa5ec6c bcachefs: Add tabstops to printbufs 2022-02-22 04:56:09 -05:00
Kent Overstreet
c06026ac54 Update bcachefs sources to 9d554fa16d bcachefs: Add .to_text() methods for all superblock sections 2022-02-21 05:38:44 -05:00
Kent Overstreet
f850624092 list_journal: tell recovery to only read the journal
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-02-19 05:18:08 -05:00
Kent Overstreet
6a935c784a Update bcachefs sources to 7d0925084b bcachefs: opts.read_journal_only 2022-02-19 05:16:30 -05:00
Kent Overstreet
0dc018fe08 list_journal: Improve formatting
log journal entries denote the start of a transaction commit - let's
indent them differently

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-02-19 04:12:15 -05:00
Kent Overstreet
a5cf18ffd4 list_journal: also print where entries were written
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-02-19 01:31:37 -05:00
Kent Overstreet
8d1c88c30d Update bcachefs sources to da8056a215 bcachefs: Store logical location of journal entries 2022-02-19 01:31:29 -05:00