Kent Overstreet
1eae1d718c
Use bch2_err_str() instead of strerror()
...
This correctly prints out our private error codes.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-12-19 16:05:54 -05:00
Kent Overstreet
e2670a38d1
Change memory reclaim
...
- Spin up a background thread to call the shrinkers every 1 second
- Memory allocations will only call reclaim after a failed allocation,
not every single time
This will be a major performance boost on allocation intensive
workloads.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2022-12-19 14:47:42 -05:00
Kent Overstreet
7111177169
Update bcachefs sources to 7958ebe324 bcachefs: Fix alloc_v4_backpointers()
2022-12-19 14:47:35 -05:00
Kent Overstreet
3c0484687d
Update bcachefs sources to 84505cfd37 bcachefs: Go RW before check_alloc_info()
2022-12-13 18:27:31 -05:00
Kent Overstreet
a06dee6da2
Update bcachefs sources to ed2a5f4260 bcachefs: Add a missing bch2_btree_path_traverse() call
2022-12-09 16:40:07 -05:00
Kent Overstreet
787768043d
Update bcachefs sources to de3b30303e bcachefs: bucket_gens btree
2022-12-02 21:55:01 -05:00
Kent Overstreet
3867739e56
Update bcachefs sources to be2d60d948 bcachefs: New magic number
2022-12-02 19:48:23 -05:00
Kent Overstreet
f82cd58008
Update bcachefs sources to f1c9030ccb bcachefs: Don't error out when just reading the journal
2022-12-01 11:20:40 -05:00
Kent Overstreet
0c98cd7bf6
Update bcachefs sources to eabde7cb37 fixup! bcachefs: Optimize bch2_alloc_to_v4()
2022-11-30 10:41:00 -05:00
Kent Overstreet
5a5a6c25a9
Update bcachefs sources to 8a65cc4951 bcachefs: Improve bch2_dev_freespace_init()
2022-11-29 01:15:08 -05:00
Kent Overstreet
934a84dfaf
Update bcachefs sources to 5963d1b1a4 bcacehfs: Fix bch2_get_alloc_in_memory_pos()
2022-11-26 17:09:59 -05:00
Stijn Tintel
48eefee749
Fix build against musl libc.
...
The musl C library does not define __attribute_const__. Add it to
include/linux/compiler.h with a guard to fix build against musl libc.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-11-24 06:21:06 +02:00
Kent Overstreet
f1f88825c3
Update bcachefs sources to ea47add37d bcachefs: More errcode cleanup
2022-11-20 00:15:11 -05:00
Kent Overstreet
7e0fbb0144
Update bcachefs sources to ed88ebf18c bcachefs: Handle last journal write being torn
2022-11-19 21:45:00 -05:00
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