Commit Graph

965 Commits

Author SHA1 Message Date
Kent Overstreet
505230a110 Update bcachefs sources to 586e7c5498 bcachefs: Improve journal_read() logging 2022-11-19 21:29:01 -05:00
Kent Overstreet
effa4c9432 rust-src: cargo update
Update locked dependencies

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-11-19 19:00:25 -05:00
Kent Overstreet
36db254cec linux/blkdev.c: Fall back to buffered IO when O_DIRECT fails
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-11-19 18:59:55 -05:00
Kent Overstreet
7e196f5399 Update bcachefs sources to 4366ca365f fixup! bcachefs: Btree split improvement 2022-11-18 18:23:28 -05:00
Kent Overstreet
c1f55a60c4 Update bcachefs sources to 6406e05835 bcachefs: Nocow support 2022-11-18 18:21:11 -05:00
Kent Overstreet
e4716b10ed cmd_migrate: Fix for write completion change
bch_write no longer delivers completions via op->cl - this patch changes
to use BCH_WRITE_SYNC.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-11-16 00:03:36 -05:00
Eric Sandeen
d9905d97d0 bcachefs-tools: add tarball make target
This makes it easy to generate a tarball, which should eventually
facilitate packaging:  "make tarball"

Note that it's currently using the $(VERSION) from git describe
which may not be ideal once point releases are happening, but that
holds true for everywhere $(VERSION) is used.

All tar.xz files are removed via "make clean"

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
2022-11-15 14:54:13 -05:00
Eric Sandeen
cde2d0e2fc bcachefs-tools: Prettify make output
Make the default "make" output look more like kbuild; this makes
errors and warnings much easier to spot. "Make V=1" will revert to
showing the full command lines.

This is done by redefining some implicit rules to add the echo and
the quiet variable.  These changes are similar to those in xfsprogs.
and btrfs-progs

This patch also silences things if pytest-3 is not found.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
2022-11-15 14:18:47 -05:00
Kent Overstreet
e2442e57f2 cmd_kill_btree_node.c
This factors out cmd_kill_btree_node into its own file - it was in
cmd_list_journal.c, which wsa rather silly.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-11-13 20:09:40 -05:00
Kent Overstreet
c1e4d447f6 Update bcachefs sources to 8d3fc97ca3 bcachefs: Fixes for building in userspace 2022-11-13 20:07:22 -05:00
Kent Overstreet
980f7437e2 Update bcachefs sources to 61ebcb532a bcachefs: Fix for allocating before backpointers have been checked 2022-10-24 11:34:07 -04:00
Kent Overstreet
ae43a58d97 Update bcachefs sources to 70fa0c1ff4 fixup! bcachefs: Btree key cache improvements 2022-10-23 18:24:08 -04:00
Kent Overstreet
188b6d0c8e Update bcachefs sources to cd779e0cc5 bcachefs: Skip inode unpack/pack in bch2_extent_update() 2022-10-22 14:41:54 -04:00
Kent Overstreet
494421ee6e Update bcachefs sources to 44be8c1da2 fixup! bcachefs: Btree key cache improvements
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-10-15 05:50:39 -04:00
Kent Overstreet
e0a51ccce8 Update bcachefs sources to 3e93567c51 bcachefs: Switch to local_clock() for fastpath time source 2022-10-15 01:04:30 -04:00
Kent Overstreet
3165f53b28 Update bcachefs sources to 6ee8a33cee bcachefs: Call bch2_btree_update_add_new_node() before dropping write lock 2022-10-12 11:06:50 -04:00
Kent Overstreet
ab392d3c15 Update bcachefs sources to 83edfdeb29 bcachefs: Run check_extents_to_backpointers() in multiple passes 2022-10-11 07:43:08 -04:00
Kent Overstreet
e66011cd2c Update bcachefs sources to 6dc2a699c6 bcachefs: bch2_path_put_nokeep() 2022-10-11 06:40:30 -04:00
Kent Overstreet
0398adf20f fixup! Don't run shrinkers without GFP_KERNEL
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-10-11 03:22:59 -04:00
Kent Overstreet
cfd00fa623 Update bcachefs sources to 55f0b5944b fixup! bcachefs: Run bch2_check_backpointers_to_extents() in multiple passes if necessary 2022-10-11 01:21:38 -04:00
Kent Overstreet
81aef33957 Don't run shrinkers without GFP_KERNEL
This would correspond to GFP_RECLAIM in the kernel - but we don't
distinguish between different types of reclaim here.

This solves a deadlock in the btree node memory allocation path - we
allocate with the btree node cache lock held but without GFP_KERNEL set.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-10-11 00:39:06 -04:00
Kent Overstreet
72add8822c Update bcachefs sources to 47ffed9fad bcachefs: bch2_btree_delete_range_trans() now uses peek_upto() 2022-10-10 00:10:45 -04:00
Kent Overstreet
8d6138baac Update bcachefs sources to cbccc6d869 bcachefs: Ratelimit ec error message 2022-10-09 02:33:05 -04:00
Kent Overstreet
99caca2c70 Update bcachefs sources to 24c6361e20 bcachefs: Fix a trans path overflow in bch2_btree_delete_range_trans()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-09-28 11:41:03 -04:00
Kent Overstreet
7af94e14b5 Update bcachefs sources to 2620221039 bcachefs: Re-enable hash_redo_key() 2022-09-12 02:39:23 -04:00
Kent Overstreet
d01f633041 Update bcachefs sources to 176718966e bcachefs: Re-enable hash_redo_key() 2022-09-04 14:42:05 -04:00
Kent Overstreet
d2c2c5954c Update bcachefs sources to a7694865a3 bcachefs: fsck: Another transaction restart handling fix 2022-08-18 18:00:01 -04:00
Kent Overstreet
c4ddc63aec Update bcachefs sources to 3421116a6c bcachefs: bch2_btree_delete_range_trans() now returns -BCH_ERR_transaction_restart_nested 2022-08-18 13:03:43 -04:00
Kent Overstreet
dded444b20 Update bcachefs sources to dfaf9a6ee2 lib/printbuf: Clean up headers 2022-08-18 12:49:48 -04:00
Kent Overstreet
51ffcc6993 Update bcachefs sources to 49c34dadca bcachefs: Switch bch2_btree_delete_range() to bch2_trans_run() 2022-08-11 19:25:47 -04:00
Kent Overstreet
ddac1641ee Update bcachefs sources to 90a9c61e2b bcachefs: Switch bch2_btree_delete_range() to bch2_trans_run() 2022-08-11 17:34:34 -04:00
Kent Overstreet
a6128b5335 cmd_list: Fix -m nodes_ondisk
We were using malloc() for a buffer to be used for an O_DIRECT read -
oops, that doesn't work.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-07-21 15:46:57 -04:00
Kent Overstreet
b47d99c2bf Update bcachefs sources to 1bda24d7cc fixup! bcachefs: for_each_btree_key2() 2022-07-17 19:28:54 -04:00
Kent Overstreet
79d39bd7ce Update bcachefs sources to d82da7126f fixup! bcachefs: for_each_btree_key2() 2022-07-17 05:20:54 -04:00
Kent Overstreet
2cea78f5cc Update bcachefs sources to 2f11bb05b0 bcachefs: for_each_btree_key2() 2022-07-15 20:51:23 -04:00
Kent Overstreet
0e69c66198 Update bcachefs sources to 17a344f265 bcachefs: Improve fsck for subvols/snapshots 2022-07-15 17:24:21 -04:00
Kent Overstreet
5ec29da373 Update bcachefs sources to a03225a783 bcachefs: Put some repair messages behind opts->verbose 2022-07-12 08:54:47 -04:00
Kent Overstreet
dce1de5426 Update bcachefs sources to a059319fee bcachefs: Put some repair messages behind opts->verbose 2022-07-11 23:07:34 -04:00
Kent Overstreet
a29cb4b9f8 cmd_device_set_state: use buffered IO for writing superblock
The layout may be unaligned on 4k sector devices - but there's no reason
we need to use direct IO here.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-07-11 23:06:17 -04:00
Kent Overstreet
cc1f2deb96 cmd_list: Fix indenting in -m nodes_ondisk
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-07-11 15:44:02 -04:00
Kent Overstreet
bad0c8c507 Update bcachefs sources to 95ff72a6c1 fixup! mm: Centralize & improve oom reporting in show_mem.c 2022-06-27 15:58:48 -04:00
Kent Overstreet
64ddfc9fc5 hweight32()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-27 15:58:39 -04:00
Kent Overstreet
57840fed19 Fixup from darray change
This fixes cmd_migrate

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-27 15:58:34 -04:00
Kent Overstreet
b4afc1fa26 Fix bdev_logical_block_size()
We were returning sectors instead of bytes.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-22 22:17:14 -04:00
Kent Overstreet
23dc00de78 Fix printk_ratelimited()
printk_ratelimited was behind an #ifdef CONFIG_PRINTK, which we don't
define, so it was a complete noop - oops.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-22 22:05:39 -04:00
Kent Overstreet
ff2ebf3f75 cmd_dump: Make sure output filename ends in .qcow2
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-18 18:34:02 -04:00
Kent Overstreet
03b8098d37 cmd_dump: Use buffered IO for reading device metadata
We're reading device metadat in mostly sequential order - buffered IO
will be faster than O_DIRECT.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-18 18:33:25 -04:00
Kent Overstreet
a232478f35 Break up cmd_debug.c into multiple files
In the future, let's have one cmd_foo.c file per subcommand.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-18 18:25:19 -04:00
Kent Overstreet
319abbc653 Update bcachefs sources to 2f4e24d856 bcachefs: Split out dev_buckets_free() 2022-06-15 14:58:36 -04:00
Kent Overstreet
3a0ae34333 Update bcachefs sources to c76f7e91e8 bcachefs: Fix btree node read retries 2022-06-14 01:44:59 -04:00