Commit Graph

1056 Commits

Author SHA1 Message Date
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
Kent Overstreet
ffbf806d5c Update bcachefs sources to 3704d0779c bcachefs: Improved human readable integer parsing 2022-06-11 18:14:06 -04:00
Kent Overstreet
6ac37db841 Update bcachefs sources to 24f7e08cd8 bcachefs: shrinker.to_text() methods 2022-06-09 15:07:25 -04:00
Kent Overstreet
bec3a26565 cmd_list_journal: Add -v (verbose)
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-06-08 21:52:14 -04:00
Kent Overstreet
b6fc4864a7 Update bcachefs sources to c68fda3e8f bcachefs: Fix btree node read error path 2022-06-07 02:16:44 -04:00
Kent Overstreet
f682263a73 Update bcachefs sources to 600598598b bcachefs: Also log overwrites in journal 2022-06-05 17:42:24 -04:00
Kent Overstreet
46b2c553aa Update bcachefs sources to fad6d13aa5 fixup! bcachefs: Add persistent counters 2022-05-30 23:24:10 -04:00
Daniel B. Hill
962390c0b2 Simplify Nix(OS) development
Signed-off-by: Daniel B. Hill <daniel@gluo.nz>
2022-05-30 22:26:27 -04:00
Kent Overstreet
03ed64edc8 Update bcachefs sources to 969fbff4ef bcachefs: Print message on btree node read retry success 2022-05-26 17:47:22 -04:00
Kent Overstreet
e142c4ca01 New subcommand: set-option
This is for setting superblock options on existing filesystems, either
online or offline.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2022-05-26 16:37:13 -04:00