Commit Graph

880 Commits

Author SHA1 Message Date
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
Kent Overstreet
cc1a99fb74 Switch to pthread_mutex_t for spinlocks, too
This fixes an observed journal deadlock - real spinlocks aren't safe in
userspace.
2022-02-18 05:58:24 -05:00
Kent Overstreet
a1e928af83 Update bcachefs sources to cea583fa17 bcachefs: Only mark iterators nopreserve that aren't in use 2022-02-16 07:22:40 -05:00
Kent Overstreet
803d749d86 Use printbuf_indent_push
This properly indents multi-line printbuf output

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-02-16 06:45:04 -05:00
Kent Overstreet
de4e778a6a Update bcachefs sources to a0d7001b0f bcachefs: Change bch2_dev_lookup() to not use lookup_bdev() 2022-02-16 06:32:49 -05:00
Kent Overstreet
a1d66a2a4e Update bcachefs sources to ba398d2906 bcachefs: Fix reflink repair code 2022-02-13 04:08:33 -05:00
Kent Overstreet
9c79275419 Update bcachefs sources to b84661c042 bcachefs: Fix reflink repair code 2022-02-11 18:33:16 -05:00
Wessel Dankers
7b15324de1
Fix heap corruption in bcachefs format
In bch2_format(): recompute mi after each sb modification:
its location in memory may have changed due to reallocation.

This fixes an issue where labels were not assigned (because
they were written to an undefined part of the heap instead of
the superblock).

Signed-off-by: Wessel Dankers <wsl@fruit.je>
2022-01-13 00:08:52 +01:00
Daniel B. Hill
2c0d0c4b7b Makefile: We need to exclude hidden folders
Sometimes user-specific apps create .c files in hidden folders breaking make.

Signed-off-by: Daniel B. Hill <daniel@gluo.nz>
2022-01-12 17:31:04 +13:00
Kent Overstreet
74a7c3ff57 Update bcachefs sources to bf340e68c7 bcachefs: Ignore cached data when calculating fragmentation 2022-01-10 21:41:51 -05:00