-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(deps): bump urllib3 from 2.0.7 to 2.2.2 in /drivers/gpu/drm/ci/xfails #691
base: master
Are you sure you want to change the base?
build(deps): bump urllib3 from 2.0.7 to 2.2.2 in /drivers/gpu/drm/ci/xfails #691
Commits on Jun 12, 2024
-
bcachefs: Fix initialization order for srcu barrier
btree_iter_init() needs to happen before key_cache_init(), to initialize btree_trans_barrier Reported-by: [email protected] Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 12, 2024 Configuration menu - View commit details
-
Copy full SHA for 979e55c - Browse repository at this point
Copy the full SHA 979e55cView commit details -
bcachefs: Fix array-index-out-of-bounds
We use 0 size arrays as markers, but ubsan doesn't know that - cast them to a pointer to fix the splat. Also, make sure this code gets tested a bit more. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 12, 2024 Configuration menu - View commit details
-
Copy full SHA for fcc8def - Browse repository at this point
Copy the full SHA fcc8defView commit details
Commits on Jun 13, 2024
-
bcachefs: add might_sleep() annotations for fsck_err()
Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 31021c4 - Browse repository at this point
Copy the full SHA 31021c4View commit details -
bcachefs: Use try_cmpxchg() family of functions instead of cmpxchg()
Use try_cmpxchg() family of functions instead of cmpxchg (*ptr, old, new) == old. x86 CMPXCHG instruction returns success in ZF flag, so this change saves a compare after cmpxchg (and related move instruction in front of cmpxchg). Also, try_cmpxchg() implicitly assigns old *ptr value to "old" when cmpxchg fails. There is no need to re-read the value in the loop. No functional change intended. Signed-off-by: Uros Bizjak <[email protected]> Cc: Kent Overstreet <[email protected]> Cc: Brian Foster <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3348ce3 - Browse repository at this point
Copy the full SHA 3348ce3View commit details -
bcachefs: Check for bsets past bch_btree_ptr_v2.sectors_written
Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 2f2ae1d - Browse repository at this point
Copy the full SHA 2f2ae1dView commit details -
bcachefs: btree_ptr_sectors_written() now takes bkey_s_c
this is for the userspace metadata dump tool Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for a61cf08 - Browse repository at this point
Copy the full SHA a61cf08View commit details -
bcachefs: make offline fsck set read_only fs flag
A subsequent change will remove "read_only" as a mount option in favor of the standard option "ro", meaning the userspace fsck command cannot pass it to the fsck ioctl. Instead, in offline fsck, set "read_only" kernel-side without trying to parse it as a mount option. For compatibility with versions of the "bcachefs fsck" command that try to pass the "read_only" mount opt, remove it from the mount options string prior to parsing when it is present. Signed-off-by: Thomas Bertschinger <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d8ed447 - Browse repository at this point
Copy the full SHA d8ed447View commit details -
bcachefs: don't expose "read_only" as a mount option
When "read_only" is exposed as a mount option, it is redundant with the standard option "ro" and gives users multiple ways to specify that a bcachefs filesystem should be mounted read-only. This presents the risk of having inconsistent options specified. This can be seen when remounting a read-only filesystem in read-write mode, using mount(8) from util-linux. Because mount(8) parses the existing mount options from `/proc/mounts` and applies them when remounting, it can end up applying both "read_only" and "rw": $ mount img -o ro /mnt $ strace mount -o remount,rw /mnt ... fsconfig(4, FSCONFIG_SET_FLAG, "read_only", NULL, 0) = 0 fsconfig(4, FSCONFIG_SET_FLAG, "rw", NULL, 0) = 0 ... Making "read_only" no longer a mount option means this edge case cannot occur. Fixes: 62719cf ("bcachefs: Fix nochanges/read_only interaction") Signed-off-by: Thomas Bertschinger <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 531185e - Browse repository at this point
Copy the full SHA 531185eView commit details -
bcachefs: bch2_printbuf_strip_trailing_newline()
Add a new helper to fix inode_to_text() Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for d260ced - Browse repository at this point
Copy the full SHA d260cedView commit details -
bcachefs: Replace bare EEXIST with private error codes
Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 90cbe22 - Browse repository at this point
Copy the full SHA 90cbe22View commit details -
bcachefs: allow passing full device path for target options
The output of mount options such as "metadata_target" in `/proc/mounts` uses the full path to the device. mount(8) from util-linux uses the output from `/proc/mounts` to pass existing mount options when performing a remount, so bcachefs should accept as input the same form that it prints as output. Without this change: $ mount -t bcachefs -o metadata_target=vdb /dev/vdb /mnt $ strace mount -o remount /mnt ... fsconfig(4, FSCONFIG_SET_STRING, "metadata_target", "/dev/vdb", 0) = -1 EINVAL (Invalid argument) ... Signed-off-by: Thomas Bertschinger <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 38002f9 - Browse repository at this point
Copy the full SHA 38002f9View commit details -
bcachefs: check_key_has_inode()
Consolidate duplicated checks for extents/dirents/xattrs - these keys should all have a corresponding inode of the correct type. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 80335d2 - Browse repository at this point
Copy the full SHA 80335d2View commit details -
bcachefs: bch_alloc->stripe_sectors
Add a separate counter to bch_alloc_v4 for amount of striped data; this lets us separately track striped and unstriped data in a bucket, which lets us see when erasure coding has failed to update extents with stripe pointers, and also find buckets to continue updating if we crash mid way through creating a new stripe. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 7f96d56 - Browse repository at this point
Copy the full SHA 7f96d56View commit details -
Add a new pseudo data type, to track buckets that are members of a stripe, but have unstriped data in them. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 5cb3b05 - Browse repository at this point
Copy the full SHA 5cb3b05View commit details -
bcachefs: metadata version bucket_stripe_sectors
New on disk format version for bch_alloc->stripe_sectors and BCH_DATA_unstriped - accounting for unstriped data in stripe buckets. Upgrade/downgrade requires regenerating alloc info - but only if erasure coding is in use. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 05af134 - Browse repository at this point
Copy the full SHA 05af134View commit details -
bcachefs: add printbuf arg to bch2_parse_mount_opts()
Mount options that take the name of a device that may be part of a filesystem, for example "metadata_target", cannot be validated until after the filesystem has been opened. However, an attempt to parse those options may be made prior to the filesystem being opened. This change adds a printbuf parameter to bch2_parse_mount_opts() which will be used to save those mount options, when they are supplied prior to the FS being opened, so that they can be parsed later. This functionality is not currently needed, but will be used after bcachefs starts using the new mount API to parse mount options. This is because using the new mount API, we will process mount options prior to opening the FS, but the new API doesn't provide a convenient way to "replay" mount option parsing. So we save these options ourselves to accomplish this. This change also splits out the code to parse a single option into bch2_parse_one_mount_opt(), which will be useful when using the new mount API which deals with a single mount option at a time. Signed-off-by: Thomas Bertschinger <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b2f79ea - Browse repository at this point
Copy the full SHA b2f79eaView commit details -
bcachefs: Add error code to defer option parsing
This introduces a new error code, option_needs_open_fs, which is used to indicate that an attempt was made to parse a mount option prior to opening a filesystem, when that mount option requires an open filesystem in order to be validated. Returning this error results in bch2_parse_one_mount_opt() saving that option for later parsing, after the filesystem is opened. Signed-off-by: Thomas Bertschinger <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e571ad3 - Browse repository at this point
Copy the full SHA e571ad3View commit details -
This updates bcachefs to use the new mount API: - Update the file_system_type to use the new init_fs_context() function. - Define the new fs_context_operations functions. - No longer register bch2_mount() and bch2_remount(); these are now called via the new fs_context functions. - Define a new helper type, bch2_opts_parse that includes a struct bch_opts and additionally a printbuf used to save options that can't be parsed until after the FS is opened. This enables us to parse as many options as possible prior to opening the filesystem while saving those options that need the open FS for later parsing. Signed-off-by: Thomas Bertschinger <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 29f9ef2 - Browse repository at this point
Copy the full SHA 29f9ef2View commit details -
New key type for the disk space accounting rewrite. - Holds a variable sized array of u64s (may be more than one for accounting e.g. compressed and uncompressed size, or buckets and sectors for a given data type) - Updates are deltas, not new versions of the key: this means updates to accounting can happen via the btree write buffer, which we'll be teaching to accumulate deltas. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 2b0227a - Browse repository at this point
Copy the full SHA 2b0227aView commit details -
bcachefs: Accumulate accounting keys in journal replay
Until accounting keys hit the btree, they are deltas, not new versions of the existing key; this means we have to teach journal replay to accumulate them. Additionally, the journal doesn't track precisely which entries have been flushed to the btree; it only tracks a range of entries that may possibly still need to be flushed. That means we need to compare accounting keys against the version in the btree and only flush updates that are newer. There's another wrinkle with the write buffer: if the write buffer starts flushing accounting keys before journal replay has finished flushing accounting keys, journal replay will see the version number from the new updates and updates from the journal will be lost. To avoid this, journal replay has to flush accounting keys first, and we'll be adding a flag so that write buffer flush knows to hold accounting keys until then. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 95415d2 - Browse repository at this point
Copy the full SHA 95415d2View commit details -
bcachefs: btree write buffer knows how to accumulate bch_accounting keys
Teach the btree write buffer how to accumulate accounting keys - instead of having the newer key overwrite the older key as we do with other updates, we need to add them together. Also, add a flag so that write buffer flush knows when journal replay is finished flushing accounting, and teach it to hold accounting keys until that flag is set. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for a00fd42 - Browse repository at this point
Copy the full SHA a00fd42View commit details -
bcachefs: Disk space accounting rewrite
Main part of the disk accounting rewrite. This is a wholesale rewrite of the existing disk space accounting, which relies on percepu counters that are sharded by journal buffer, and rolled up and added to each journal write. With the new scheme, every set of counters is a distinct key in the accounting btree; this fixes scaling limitations of the old scheme, where counters took up space in each journal entry and required multiple percpu counters. Now, in memory accounting requires a single set of percpu counters - not multiple for each in flight journal buffer - and in the future we'll probably also have counters that don't use in memory percpu counters, they're not strictly required. An accounting update is now a normal btree update, using the btree write buffer path. At transaction commit time, we apply accounting updates to the in memory counters, which are percpu counters indexed in an eytzinger tree by the accounting key. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 6353f52 - Browse repository at this point
Copy the full SHA 6353f52View commit details -
bcachefs: Coalesce accounting keys before journal replay
This fixes a performance regression in journal replay; without colaescing accounting keys we have multiple keys at the same position, which means journal_keys_peek_upto() has to skip past many overwritten keys - turning journal replay into an O(n^2) algorithm. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 5035043 - Browse repository at this point
Copy the full SHA 5035043View commit details -
bcachefs: dev_usage updated by new accounting
Reading disk accounting now requires an eytzinger lookup (see: bch2_accounting_mem_read()), but the per-device counters are used frequently enough that we'd like to still be able to read them with just a percpu sum, as in the old code. This patch special cases the device counters; when we update in-memory accounting we also update the old style percpu counters if it's a deice counter update. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for b89540e - Browse repository at this point
Copy the full SHA b89540eView commit details -
bcachefs: Kill bch2_fs_usage_initialize()
Deleting code for the old disk accounting scheme. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for d16e175 - Browse repository at this point
Copy the full SHA d16e175View commit details -
bcachefs: Convert bch2_ioctl_fs_usage() to new accounting
This converts bch2_ioctl_fs_usage() to read from the new disk accounting, via bch2_fs_replicas_usage_read(). Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 1da2879 - Browse repository at this point
Copy the full SHA 1da2879View commit details -
bcachefs: kill bch2_fs_usage_read()
With bch2_ioctl_fs_usage(), this is now dead code. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for ec752b7 - Browse repository at this point
Copy the full SHA ec752b7View commit details -
bcachefs: Kill writing old accounting to journal
More ripping out of the old disk space accounting. Note that the new disk space accounting is incompatible with the old, and writing out old style disk space accounting with the new code is infeasible. This means upgrading and downgrading past this version requires regenerating accounting. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 69da2a2 - Browse repository at this point
Copy the full SHA 69da2a2View commit details -
bcachefs: Delete journal-buf-sharded old style accounting
More deletion of dead code. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for f76551c - Browse repository at this point
Copy the full SHA f76551cView commit details -
bcachefs: Kill bch2_fs_usage_to_text()
Dead code. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 3c861ca - Browse repository at this point
Copy the full SHA 3c861caView commit details -
bcachefs: Kill fs_usage_online
More dead code deletion. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 041fd48 - Browse repository at this point
Copy the full SHA 041fd48View commit details -
bcachefs: Kill replicas_journal_res
More dead code deletion Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 5e4ffb7 - Browse repository at this point
Copy the full SHA 5e4ffb7View commit details -
bcachefs: Convert gc to new accounting
Rewrite fsck/gc for the new accounting scheme. This adds a second set of in-memory accounting counters for gc to use; like with other parts of gc we run all trigger in TRIGGER_GC mode, then compare what we calculated to existing in-memory accounting at the end. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for f5e5f19 - Browse repository at this point
Copy the full SHA f5e5f19View commit details -
bcachefs: Convert bch2_replicas_gc2() to new accounting
bch2_replicas_gc2() is used for garbage collection superblock replicas entries that are empty - this converts it to the new accounting scheme. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for b27933d - Browse repository at this point
Copy the full SHA b27933dView commit details -
bcachefs: bch2_verify_accounting_clean()
Verify that the in-memory accounting verifies the on-disk accounting after a clean shutdown. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for af59449 - Browse repository at this point
Copy the full SHA af59449View commit details -
bcachefs: bch_acct_compression
This adds per-compression-type accounting of compressed and uncompressed size as well as number of extents - meaning we can now see compression ratio (without walking the whole filesystem). Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for d29a891 - Browse repository at this point
Copy the full SHA d29a891View commit details -
bcachefs: Convert bch2_compression_stats_to_text() to new accounting
We no longer have to walk the whole btree to calculate compression stats. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for ed1888f - Browse repository at this point
Copy the full SHA ed1888fView commit details -
bcachefs: bch2_fs_accounting_to_text()
Helper to show raw accounting in sysfs, mainly for debugging. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 962c48c - Browse repository at this point
Copy the full SHA 962c48cView commit details -
bcachefs: bch2_fs_usage_base_to_text()
Helper to show raw accounting in sysfs, mainly for debugging. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 2f70bd6 - Browse repository at this point
Copy the full SHA 2f70bd6View commit details -
Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for a9c7e7d - Browse repository at this point
Copy the full SHA a9c7e7dView commit details -
Add counters for how much disk space we're using per btree. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 4e61d99 - Browse repository at this point
Copy the full SHA 4e61d99View commit details -
bcachefs: bch_acct_rebalance_work
Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 5316d13 - Browse repository at this point
Copy the full SHA 5316d13View commit details -
bcachefs: Eytzinger accumulation for accounting keys
The btree write buffer takes as input keys from the journal, sorts them, deduplicates them, and flushes them back to the btree in sorted order. The disk space accounting rewrite is moving accounting to normal btree keys, with update (in this case deltas) accumulated in the write buffer and then flushed to the btree; but this is going to increase the number of keys handled by the write buffer by perhaps as much as a factor of 3x-5x. The overhead from copying around and sorting this many keys would cause a significant performance regression, but: there is huge locality in updates to accounting keys that we can take advantage of. Instead of appending accounting keys to the list of keys to be sorted, this patch adds an eytzinger search tree of recently seen accounting keys. We look up the accounting key in the eytzinger search tree and apply the delta directly, adding it if it doesn't exist, and periodically prune the eytzinger tree of unused entries. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for b904526 - Browse repository at this point
Copy the full SHA b904526View commit details -
Fold into bch2_fs_get_tree() Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for c3761b5 - Browse repository at this point
Copy the full SHA c3761b5View commit details -
bcachefs: bch2_fs_get_tree() cleanup
- improve error paths - call bch2_fs_start() separately, after applying late-parsed options Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for e602388 - Browse repository at this point
Copy the full SHA e602388View commit details -
bcachefs: Don't block journal when finishing check_allocations()
Blocking the journal was needed to finish checking old style accounting, but that code is gone and it's not needed in the alloc rewrite, mark_lock is sufficient for synchronization. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for d4cd604 - Browse repository at this point
Copy the full SHA d4cd604View commit details -
bcachefs: Walk leaf to root in btree_gc
Next change will move gc_alloc_start initialization into the alloc trigger, so we have to mark those first. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for ac9bc5c - Browse repository at this point
Copy the full SHA ac9bc5cView commit details -
bcachefs: Initialize gc buckets in alloc trigger
Needed for online fsck; we need the trigger to initialize newly allocated buckets and generation number changes while gc is running. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 19d5a16 - Browse repository at this point
Copy the full SHA 19d5a16View commit details -
bcachefs: Delete old assertion for online fsck
the order in which btree_gc walks keys have changed, so we no longer have the sort of issues with online fsck this assertion was warning about. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 7ef668b - Browse repository at this point
Copy the full SHA 7ef668bView commit details -
bcachefs: btree_types bitmask cleanups
Make things more consistent and ensure that we're using u64 bitfields - key types and btree ids are already around 32 bits. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for ad58a43 - Browse repository at this point
Copy the full SHA ad58a43View commit details -
bcachefs: fsck_err() may now take a btree_trans
fsck_err() now optionally takes a btree_trans; if the current thread has one, it is required that it be passed. The next patch will use this to unlock when waiting for user input. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for eb4ced4 - Browse repository at this point
Copy the full SHA eb4ced4View commit details -
bcachefs: Plumb more logging through stdio redirect
Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for c3b9f10 - Browse repository at this point
Copy the full SHA c3b9f10View commit details -
bcachefs: twf: convert bch2_stdio_redirect_readline() to darray
We now read the line from the buffer atomically, which means we have to allow the buffer to grow past STDIO_REDIRECT_BUFSIZE if we're waiting for a full line - this behaviour is necessary for stdio_redirect_readline_timeout() in the next patch. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 7e13c48 - Browse repository at this point
Copy the full SHA 7e13c48View commit details -
bcachefs: bch2_stdio_redirect_readline_timeout()
Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for b0a1105 - Browse repository at this point
Copy the full SHA b0a1105View commit details -
bcachefs: twf: delete dead struct fields
Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for e8d1732 - Browse repository at this point
Copy the full SHA e8d1732View commit details -
bcachefs: bch2_dir_emit() - fix directory reads in the fuse driver
Commit 0c0cbfd dropped the ctx->pos update before the call to dir_emit. This breaks the userspace implementation, causing the directory reads to be stuck in an infinite loop. This doesn't happen in the kernel because the vfs handles the updates to ctx->pos, but in the fuse implementation nobody updates it. Signed-off-by: Ariel Miculas <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for df27331 - Browse repository at this point
Copy the full SHA df27331View commit details -
bcachefs: track writeback errors using the generic tracking infrastru…
…cture We already using mapping_set_error() in bch2_writepage_io_done(), so all we need to do is to use file_check_and_advance_wb_err() when handling fsync() requests in bch2_fsync(). Signed-off-by: Youling Tang <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Youling Tang authored and Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 07c766d - Browse repository at this point
Copy the full SHA 07c766dView commit details -
bcachefs: Add tracepoints for bch2_sync_fs() and bch2_fsync()
Add trace_bch2_sync_fs() and trace_bch2_fsync() implementations. The output in trace is as follows: sync-29779 [000] ..... 193.700935: bch2_sync_fs: dev 254,16 wait 1 <...>-40027 [002] ..... 342.535227: bch2_fsync: dev 254,32 ino 4099 parent 4096 datasync 1 Signed-off-by: Youling Tang <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Youling Tang authored and Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 88da372 - Browse repository at this point
Copy the full SHA 88da372View commit details -
bcachefs: Clear trans->last_unlock_ip when setting trans->locked
We're seeing a funny looking trans->locked assertion pop; we should be after a bch2_trans_begin() call. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 6edc524 - Browse repository at this point
Copy the full SHA 6edc524View commit details -
bcachefs: Unlock trans when waiting for user input in fsck
We can't hold locks while waiting for user input, that's a deadlock. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 536dcb1 - Browse repository at this point
Copy the full SHA 536dcb1View commit details -
bcachefs: implement FS_IOC_GETVERSION to support lsattr
In this patch we add the FS_IOC_GETVERSION ioctl for getting i_generation from inode, after that, users can list file's generation number by using "lsattr". Signed-off-by: Hongbo Li <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Hongbo Li authored and Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for e762965 - Browse repository at this point
Copy the full SHA e762965View commit details -
bcachefs: support get fs label
Implement support for FS_IOC_GETFSLABEL ioctl to read filesystem label. Signed-off-by: Hongbo Li <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Hongbo Li authored and Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 11cc5d3 - Browse repository at this point
Copy the full SHA 11cc5d3View commit details -
bcachefs: support FS_IOC_SETFSLABEL
Implement support for FS_IOC_SETFSLABEL ioctl to set filesystem label. Signed-off-by: Hongbo Li <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Hongbo Li authored and Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for cfbdb84 - Browse repository at this point
Copy the full SHA cfbdb84View commit details -
bcachefs: support REMAP_FILE_DEDUP in bch2_remap_file_range
By removing the early-exit when REMAP_FILE_DEDUP is set, we should be able to support the fideduperange ioctl, albeit less efficiently than if we handled some of the extent locking and comparison logic inside bcachefs. Extent comparison logic already exists inside of `__generic_remap_file_range_prep`. Signed-off-by: Reed Riley <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4534548 - Browse repository at this point
Copy the full SHA 4534548View commit details -
bcachefs: BCH_IOCTL_QUERY_ACCOUNTING
Add a new ioctl that can return the new accounting counter types; it takes as input a bitmask of accounting types to return. This will be used for returning e.g. compression accounting and rebalance_work accounting. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 3cd932e - Browse repository at this point
Copy the full SHA 3cd932eView commit details -
bcachefs: bch2_btree_insert() - add btree iter flags
The commit 65bd442 ("bcachefs: bch2_btree_insert_trans() no longer specifies BTREE_ITER_cached") removes BTREE_ITER_cached from bch2_btree_insert_trans, which causes the update_inode function from bcachefs-tools to take a long time (~20s). Add an iter_flags parameter to bch2_btree_insert, so the users can specify iter update trigger flags, such as BTREE_ITER_cached. Signed-off-by: Ariel Miculas <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0aec44f - Browse repository at this point
Copy the full SHA 0aec44fView commit details -
bcachefs: Fix race in bch2_accounting_mem_insert()
bch2_accounting_mem_insert() drops and retakes mark_lock; thus, we need to check if the entry in question has already been inserted. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for c17e83d - Browse repository at this point
Copy the full SHA c17e83dView commit details -
bcachefs: fix smatch data leak warning in fs usage ioctl
smatch warns that the copy of arg to userspace is a potential data leak by virtue of arg.pad not being checked or zeroed. This was introduced by the commit referenced below that switched arg from being a zeroed runtime allocation to living on the stack. Fix by simply zero initializing the structure. Fixes: cde738a ("bcachefs: Convert bch2_ioctl_fs_usage() to new accounting") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Brian Foster <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Brian Foster authored and Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 6108343 - Browse repository at this point
Copy the full SHA 6108343View commit details -
bcachefs: Refactor disk accounting data structures
Break up the percpu counter allocations into individual allocations for each disk accounting counter; this fixes an issue on large systems where we have too many replica entries to for the percpu allocator's max practical size. Also, use just one eytzinger tree for the normal set of counters and the gc counters; this simplifies accounting_gc_done() where we need the same set of counters to be present in both tables. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for ed82971 - Browse repository at this point
Copy the full SHA ed82971View commit details -
bcachefs: bch2_accounting_mem_gc()
Add a new helper to free zeroed out accounting entries, and use it in bch2_replicas_gc2(); bch2_replicas_gc2() was killing superblock replicas entries if their corresponding accounting counters were nonzero, but that's incorrect - the superblock replicas entry needs to exist if the accounting entry exists, not if it's nonzero, because we check and create the replicas entry when creating the new accounting entry - we don't know when it's becoming nonzero. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 69b6f9d - Browse repository at this point
Copy the full SHA 69b6f9dView commit details -
bcachefs: Fix bch2_gc_accounting_done() locking
The transaction commit path takes mark_lock, so we shouldn't be holding it; use a bpos as an iterator so that we can drop and retake. Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 3a78488 - Browse repository at this point
Copy the full SHA 3a78488View commit details -
bcachefs: Kill gc_pos_btree_node()
gc_pos is now based on keys, not nodes, for invariantness w.r.t. splits and merges Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 9a1f179 - Browse repository at this point
Copy the full SHA 9a1f179View commit details -
bcachefs: bch2_btree_id_to_text()
Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 2c32dfe - Browse repository at this point
Copy the full SHA 2c32dfeView commit details -
bcachefs: bch2_gc_pos_to_text()
Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for c748270 - Browse repository at this point
Copy the full SHA c748270View commit details -
bcachefs: btree_node_unlock() assert
we have a separate helper for releasing write locks Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for cad2642 - Browse repository at this point
Copy the full SHA cad2642View commit details -
bcachefs: btree_path_cached_set()
new helper - small refactoring Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for f3664b4 - Browse repository at this point
Copy the full SHA f3664b4View commit details -
bcachefs: kill key cache arg to bch2_assert_pos_locked()
this is an internal implementation detail - and we're improving key cache coherency Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 13, 2024 Configuration menu - View commit details
-
Copy full SHA for b37c1b0 - Browse repository at this point
Copy the full SHA b37c1b0View commit details
Commits on Jun 15, 2024
-
MAINTAINERS: remove Brian Foster as a reviewer for bcachefs
Signed-off-by: Brian Foster <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Brian Foster authored and Kent Overstreet committedJun 15, 2024 Configuration menu - View commit details
-
Copy full SHA for a42d9e0 - Browse repository at this point
Copy the full SHA a42d9e0View commit details -
Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 15, 2024 Configuration menu - View commit details
-
Copy full SHA for 3f2eeb2 - Browse repository at this point
Copy the full SHA 3f2eeb2View commit details -
bcachefs: Reduce the scope of gc_lock
gc_lock is now only for synchronization between check_alloc_info and interior btree updates - nothing else Signed-off-by: Kent Overstreet <[email protected]>
Kent Overstreet committedJun 15, 2024 Configuration menu - View commit details
-
Copy full SHA for 65e8961 - Browse repository at this point
Copy the full SHA 65e8961View commit details -
bcachefs: use FGP_WRITEBEGIN instead of combining individual flags
Use FGP_WRITEBEGIN to avoid repeating the individual FGP flags before starting a buffered write. Signed-off-by: Pankaj Raghav <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a2db33f - Browse repository at this point
Copy the full SHA a2db33fView commit details -
bcachefs: set fgf order hint before starting a buffered write
Set the preferred folio order in the fgp_flags by calling fgf_set_order(). Page cache will try to allocate large folio of the preferred order whenever possible instead of allocating multiple 0 order folios. This improves the buffered write performance up to 1.25x with default mount options and up to 1.57x when mounted with no_data_io option with the following fio workload: fio --name=bcachefs --filename=/mnt/test --size=100G \ --ioengine=io_uring --iodepth=16 --rw=write --bs=128k Signed-off-by: Pankaj Raghav <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6172f3c - Browse repository at this point
Copy the full SHA 6172f3cView commit details
Commits on Jun 17, 2024
-
build(deps): bump urllib3 in /drivers/gpu/drm/ci/xfails
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.0.7 to 2.2.2. - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst) - [Commits](urllib3/urllib3@2.0.7...2.2.2) --- updated-dependencies: - dependency-name: urllib3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dcc97ee - Browse repository at this point
Copy the full SHA dcc97eeView commit details