Commit Graph

1056 Commits

Author SHA1 Message Date
Kent Overstreet
fa7a74fcc8 Delete some dead code
printf_pad() has been superseded by printbuf tabstops.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-05-26 16:30:57 -04:00
Kent Overstreet
62839683e8 Update email address
This changes linux-bcache@vger.kernel.org references to the correct
mailing list (linux-bcachefs@vger.kernel.org).

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-05-26 15:40:08 -04:00
Kent Overstreet
8cc7d49281 cmd_unlock: Add -k argument to specify keyring
This adds a new argument (-k) to cmd_unlock for specifying the keyring
to add to. The default is user, but user_session and session can also be
specified.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-05-19 16:01:51 -04:00
Kent Overstreet
0766bee8fd Update bcachefs sources to c4ca278a54 bcachefs: Delete bch_writepage 2022-05-09 12:40:49 -04:00
Kent Overstreet
6f5afc0c12 Update bcachefs sources to bdf6d7c135 fixup! bcachefs: Kill journal buf bloom filter 2022-05-02 18:42:06 -04:00
Igor Velkov
88b27bd794 Fix man for device set-state command
Signed-off-by: Igor Velkov <iav@iav.lv>
2022-04-17 00:50:01 +03:00
Kent Overstreet
c25cc1b531 list_journal: Add -n for number of entries to print
The entire journal can be too big to fit in memory in textual form,
making grep difficult: this adds an option to print a specific number of
journal entries.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-04-12 16:38:10 -04:00
Kent Overstreet
ca4bb4155a Update bcachefs sources to 4c2d3669b1 bcachefs: In fsck, pass BTREE_UPDATE_INTERNAL_SNAPSHOT_NODE when deleting dirents 2022-04-12 13:15:53 -04:00
Kent Overstreet
51d44e575c Update bcachefs sources to 7a06c01fa3 bcachefs: Fix for getting stuck in journal replay 2022-04-12 12:52:50 -04:00
Kent Overstreet
f89eb5a288 Update bcachefs sources to de2fbf8b87 fixup! bcachefs: Change journal_io.c assertion to error message 2022-04-11 23:03:41 -04:00
Kent Overstreet
04ad4ade4c Update bcachefs sources to fb8a27f6d4 bcachefs: Delete a redundant tracepoint 2022-04-11 22:40:16 -04:00
Kent Overstreet
7923c2ee06 Update bcachefs sources to e67d924a90 bcachefs: Introduce bch2_journal_keys_peek_(upto|slot)() 2022-04-11 20:32:28 -04:00
Kent Overstreet
74b88aa9be Update bcachefs sources to 2d5e6ec144 fixup! bcachefs: Ensure buckets have io_time[READ] set 2022-04-10 22:29:14 -04:00
Kent Overstreet
2668cb95d9 Update bcachefs sources to 202b20c48f bcachefs: Ensure buckets have io_time[READ] set 2022-04-10 20:02:24 -04:00
Kent Overstreet
d256ebaa81 Update bcachefs sources to 1e6618c45d bcachefs: Improve bch2_open_buckets_to_text() 2022-04-10 18:07:55 -04:00
Kent Overstreet
14aaa25ff2 Update bcachefs sources to 1ff261b014 bcachefs: Fix CPU usage in journal read path 2022-04-10 16:29:14 -04:00
Kent Overstreet
5ee3f4d7b2 Update bcachefs sources to ad72553649 bcachefs: Fix a null ptr deref 2022-04-10 14:41:57 -04:00
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