]> git.hungrycats.org Git - linux/commitdiff
stripe-alloc: export patches 113-114 (reclaim debug log, stripe_reclaim_now)
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 21 Oct 2026 07:29:19 +0000 (03:29 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 21 Oct 2026 07:29:19 +0000 (03:29 -0400)
Promoted on both lanes 2026-10-21: misc-next stripe-alloc bcadbfc8ac02,
testing 12c700ee1440, zb64 aa5e2b4c73c0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B6wxsJn1aY7PwnhgXdz6Ec

117 files changed:
README.md
fixups/post-merge.patch
topics/stripe-alloc/0000-cover-letter.patch
topics/stripe-alloc/0001-btrfs-add-btrfs_claim_free_stripe_run-for-stripe-exc.patch
topics/stripe-alloc/0002-btrfs-add-open-stripe-run-tracking-for-stripe-exclus.patch
topics/stripe-alloc/0003-btrfs-add-the-stripe_alloc-allocation-policy-for-rai.patch
topics/stripe-alloc/0004-btrfs-stripe_alloc-control-the-policy-with-a-filesys.patch
topics/stripe-alloc/0005-btrfs-report-stripe-run-data-IO-through-the-ordered-.patch
topics/stripe-alloc/0006-btrfs-retire-stripe-runs-at-commit-and-gate-stripe_a.patch
topics/stripe-alloc/0007-btrfs-add-a-write-hole-invariant-checker-to-the-raid.patch
topics/stripe-alloc/0008-btrfs-account-stripe_alloc-trapped-free-space-for-ho.patch
topics/stripe-alloc/0009-btrfs-stripe_alloc-keep-an-open-run-per-size-band-to.patch
topics/stripe-alloc/0010-btrfs-stripe_alloc-grow-the-frontier-run-instead-of-.patch
topics/stripe-alloc/0011-btrfs-raid56-batch-stripe_alloc-partial-writes-into-.patch
topics/stripe-alloc/0012-btrfs-stripe_alloc-never-claim-stripes-covered-by-a-.patch
topics/stripe-alloc/0013-btrfs-stripe_alloc-settle-a-logged-extent-s-stripes-.patch
topics/stripe-alloc/0014-btrfs-stripe_alloc-private-per-inode-stripe-runs-for.patch
topics/stripe-alloc/0015-btrfs-stripe_alloc-carry-an-inode-s-log-tail-forward.patch
topics/stripe-alloc/0016-btrfs-stripe_alloc-kick-parked-rbios-before-the-fast.patch
topics/stripe-alloc/0017-btrfs-raid56-pad-sub-stripe-writes-to-full-stripes-i.patch
topics/stripe-alloc/0018-btrfs-stripe_alloc-isolate-nodatacow-and-preallocate.patch
topics/stripe-alloc/0019-btrfs-stripe_alloc-allow-rmw-policy-and-write-in-pla.patch
topics/stripe-alloc/0020-btrfs-stripe_alloc-persist-nocow-runs-across-commits.patch
topics/stripe-alloc/0021-btrfs-raid56-do-not-park-sync-writes-into-nocow-runs.patch
topics/stripe-alloc/0022-btrfs-raid56-expose-parking-statistics-in-sysfs.patch
topics/stripe-alloc/0023-btrfs-raid56-skip-parking-for-sync-rbios-finished-by.patch
topics/stripe-alloc/0024-btrfs-stripe_alloc-count-open-stripe-run-remainders-.patch
topics/stripe-alloc/0025-btrfs-stripe_alloc-pessimistic-data-reservation-marg.patch
topics/stripe-alloc/0026-btrfs-stripe_alloc-claim-fully-free-stripes-that-spa.patch
topics/stripe-alloc/0027-btrfs-stripe_alloc-warn-when-raid56-metadata-is-not-.patch
topics/stripe-alloc/0028-btrfs-stripe_alloc-report-read-modify-write-of-uncov.patch
topics/stripe-alloc/0029-btrfs-raid56-say-whether-a-metadata-read-modify-writ.patch
topics/stripe-alloc/0030-btrfs-stripe_alloc-tunable-park-deadlines-and-say-wh.patch
topics/stripe-alloc/0031-btrfs-stripe_alloc-trace-why-padding-declined-at-the.patch
topics/stripe-alloc/0032-btrfs-stripe_alloc-complete-parked-writes-on-allocat.patch
topics/stripe-alloc/0033-btrfs-stripe_alloc-track-per-sector-liveness-and-pad.patch
topics/stripe-alloc/0034-btrfs-stripe_alloc-count-claimable-whole-stripe-supp.patch
topics/stripe-alloc/0035-btrfs-raid56-adaptive-park-deadline-from-the-parked-.patch
topics/stripe-alloc/0036-btrfs-stripe_alloc-gate-data-admission-on-claimable-.patch
topics/stripe-alloc/0037-btrfs-stripe_alloc-cache-a-failed-stripe-run-scan-pe.patch
topics/stripe-alloc/0038-btrfs-stripe_meta-allocate-tree-blocks-by-whole-stri.patch
topics/stripe-alloc/0039-btrfs-stripe_alloc-drain-the-legacy-allocator-s-writ.patch
topics/stripe-alloc/0040-btrfs-stripe_alloc-keep-the-admitted-bytes-placeable.patch
topics/stripe-alloc/0041-btrfs-stripe_alloc-never-let-relocation-wait-on-the-.patch
topics/stripe-alloc/0042-btrfs-stripe_alloc-give-a-queued-stripe-group-a-chun.patch
topics/stripe-alloc/0043-btrfs-stripe_alloc-charge-relocation-a-margin-per-re.patch
topics/stripe-alloc/0044-btrfs-stripe_alloc-keep-the-relocation-group-s-strip.patch
topics/stripe-alloc/0045-btrfs-stripe_alloc-let-a-data-write-fall-back-to-the.patch
topics/stripe-alloc/0046-btrfs-stripe_alloc-hand-groups-full-of-trapped-free-.patch
topics/stripe-alloc/0047-btrfs-stripe_alloc-relocate-a-queued-stripe-group-ev.patch
topics/stripe-alloc/0048-btrfs-stripe_meta-maintain-trapped-free-space-for-me.patch
topics/stripe-alloc/0049-btrfs-stripe_meta-back-the-global-reserve-with-usabl.patch
topics/stripe-alloc/0050-btrfs-stripe_meta-hold-back-whole-stripes-so-tree-bl.patch
topics/stripe-alloc/0051-btrfs-stripe_meta-do-not-steal-from-the-global-reser.patch
topics/stripe-alloc/0052-btrfs-stripe_meta-let-the-transaction-machinery-s-ow.patch
topics/stripe-alloc/0053-btrfs-stripe_meta-let-a-group-go-read-only-for-reloc.patch
topics/stripe-alloc/0054-btrfs-stripe_alloc-show-per-group-trapped-bytes-in-t.patch
topics/stripe-alloc/0055-btrfs-stripe_alloc-tell-a-dead-tree-block-from-a-liv.patch
topics/stripe-alloc/0056-btrfs-stripe_alloc-do-not-read-an-inline-backref-off.patch
topics/stripe-alloc/0057-btrfs-stripe_alloc-count-whole-stripes-stranded-behi.patch
topics/stripe-alloc/0058-btrfs-stripe_alloc-give-nocow-extents-a-private-run-.patch
topics/stripe-alloc/0059-btrfs-stripe_alloc-count-nocow-run-lifecycles-and-st.patch
topics/stripe-alloc/0060-btrfs-stripe_alloc-hold-a-stripe-of-margin-across-a-.patch
topics/stripe-alloc/0061-btrfs-stripe_meta-carry-raid56-metadata-groups-throu.patch
topics/stripe-alloc/0062-btrfs-stripe_alloc-return-a-group-s-allocation-clust.patch
topics/stripe-alloc/0063-btrfs-stripe_alloc-release-open-stripe-runs-when-a-m.patch
topics/stripe-alloc/0064-btrfs-stripe_alloc-say-at-mount-whether-the-policy-i.patch
topics/stripe-alloc/0065-btrfs-stripe_meta-cover-raid56-system-chunks.patch
topics/stripe-alloc/0066-btrfs-stripe_alloc-close-dead-nocow-stripe-runs-at-c.patch
topics/stripe-alloc/0067-btrfs-stripe_alloc-do-not-round-a-full-stripe-with-p.patch
topics/stripe-alloc/0068-btrfs-stripe_alloc-do-not-wait-for-stripe-runs-to-dr.patch
topics/stripe-alloc/0069-btrfs-stripe_alloc-end-the-commit-time-and-log-drain.patch
topics/stripe-alloc/0070-btrfs-stripe_alloc-compact-mostly-live-groups-instea.patch
topics/stripe-alloc/0071-btrfs-stripe_alloc-attribute-each-data-read-modify-w.patch
topics/stripe-alloc/0072-btrfs-stripe_alloc-optionally-audit-data-read-modify.patch
topics/stripe-alloc/0073-btrfs-stripe_alloc-keep-relocation-s-stripe-runs-unt.patch
topics/stripe-alloc/0074-btrfs-stripe_alloc-let-relocation-allocate-a-data-ch.patch
topics/stripe-alloc/0075-btrfs-stripe_alloc-keep-a-stripe-in-the-rbio-cache-u.patch
topics/stripe-alloc/0076-btrfs-stripe_alloc-pad-a-stripe-s-allocated-sectors-.patch
topics/stripe-alloc/0077-btrfs-stripe_alloc-apply-the-property-before-tree-lo.patch
topics/stripe-alloc/0078-btrfs-stripe_alloc-count-refused-rbio-pins-and-track.patch
topics/stripe-alloc/0079-btrfs-stripe_alloc-sweep-stale-rbio-pins-and-commit-.patch
topics/stripe-alloc/0080-btrfs-stripe_alloc-break-rbio-pins-and-open-stripe-r.patch
topics/stripe-alloc/0081-btrfs-stripe_alloc-give-each-log-commit-its-own-meta.patch
topics/stripe-alloc/0082-btrfs-stripe_alloc-don-t-make-a-parked-rbio-wait-for.patch
topics/stripe-alloc/0083-btrfs-stripe_alloc-share-LOG-data-runs-per-log-trans.patch
topics/stripe-alloc/0084-btrfs-stripe_alloc-let-relocation-allocate-as-many-d.patch
topics/stripe-alloc/0085-btrfs-stripe_alloc-key-private-stripe-runs-by-subvol.patch
topics/stripe-alloc/0086-btrfs-stripe_alloc-do-not-treat-an-allocation-error-.patch
topics/stripe-alloc/0087-btrfs-stripe_alloc-mark-an-ended-ordered-extent-s-se.patch
topics/stripe-alloc/0088-btrfs-stripe_alloc-read-the-shared-LOG-run-mode-once.patch
topics/stripe-alloc/0089-btrfs-stripe_alloc-remove-only-the-set-bits-of-a-bit.patch
topics/stripe-alloc/0090-btrfs-stripe_alloc-claim-a-stripe-tail-in-one-free-s.patch
topics/stripe-alloc/0091-btrfs-stripe_alloc-keep-the-stripe-totals-consistent.patch
topics/stripe-alloc/0092-btrfs-stripe_alloc-do-not-delete-an-unused-block-gro.patch
topics/stripe-alloc/0093-btrfs-stripe_meta-commit-before-waiting-for-metadata.patch
topics/stripe-alloc/0094-btrfs-raid56-do-not-read-tree-blocks-under-the-strip.patch
topics/stripe-alloc/0095-btrfs-raid56-stop-the-park-timer-before-destroying-t.patch
topics/stripe-alloc/0096-btrfs-stripe_alloc-order-the-filesystem-error-before.patch
topics/stripe-alloc/0097-btrfs-raid56-set-a-padded-rbio-s-data-bitmap-under-b.patch
topics/stripe-alloc/0098-btrfs-stripe_alloc-forget-the-failed-claim-verdict-w.patch
topics/stripe-alloc/0099-btrfs-stripe_alloc-do-not-let-a-remount-revert-the-s.patch
topics/stripe-alloc/0100-btrfs-stripe_alloc-do-not-block-a-NOWAIT-write-in-th.patch
topics/stripe-alloc/0101-btrfs-stripe_alloc-keep-the-head-of-a-claimed-free-s.patch
topics/stripe-alloc/0102-btrfs-stripe_meta-check-the-block-group-lookup-when-.patch
topics/stripe-alloc/0103-btrfs-stripe_alloc-remove-the-unused-stripe_rmw_opt-.patch
topics/stripe-alloc/0104-btrfs-stripe_alloc-correct-and-trim-the-block-group-.patch
topics/stripe-alloc/0105-btrfs-stripe_alloc-correct-and-trim-the-comments-out.patch
topics/stripe-alloc/0106-btrfs-stripe_meta-keep-waiting-for-metadata-runs-tha.patch
topics/stripe-alloc/0107-btrfs-stripe_alloc-remove-pad-refusal-reasons-that-n.patch
topics/stripe-alloc/0108-btrfs-stripe_alloc-count-and-log-ordered-extents-tha.patch
topics/stripe-alloc/0109-btrfs-stripe_alloc-skip-RAID5-6-groups-that-are-mapp.patch
topics/stripe-alloc/0110-btrfs-stripe_alloc-count-single-data-stripe-groups-f.patch
topics/stripe-alloc/0111-btrfs-stripe_alloc-account-claimable-stripes-while-a.patch
topics/stripe-alloc/0112-btrfs-stripe_alloc-do-not-miss-bitmap-free-space-whe.patch
topics/stripe-alloc/0113-btrfs-log-block-group-reclaim-at-debug-level.patch [new file with mode: 0644]
topics/stripe-alloc/0114-btrfs-stripe_alloc-add-stripe_reclaim_now-to-reclaim.patch [new file with mode: 0644]

index 17ba5cb871f01409fc320f5af7091d77e8aaba62..8309fce7b9e5b26ee3d437b31f9c5040755ece56 100644 (file)
--- a/README.md
+++ b/README.md
@@ -8,8 +8,8 @@ upstream at all (see the table).
 | | |
 |---|---|
 | base of every series | `0c48d26d46bd` ("btrfs: stop reading free space inodes from the commit root"), the misc-next lane base (`misc-next/testing^1`) |
-| integration branch | `misc-next/testing` `5eed033e8449` (octopus of all 18 topics) |
-| lane head | `zygo-misc-next-zb64` `e2c9218febf9`; its own commits on top of `testing` (kernel configs, `covers/`) are not exported |
+| integration branch | `misc-next/testing` `12c700ee1440` (octopus of all 18 topics) |
+| lane head | `zygo-misc-next-zb64` `aa5e2b4c73c0`; its own commits on top of `testing` (kernel configs, `covers/`) are not exported |
 
 The base is not a published commit: the lane rebuilds it from
 btrfs/for-next plus David Sterba's queue.  It lives in the
@@ -69,7 +69,7 @@ the integration recipe below uses.
 | `prealloc-size` | 1 | `93d225865ab2` | Zygo | new, 0/1 (drafted 2026-10-18) | |
 | `raid56-fixes` | 12 | `f7e693d10be2` | Zygo | new; replaces `covers/raid56-rbio-fixes.txt` (2 of these patches) | **patch 12 is DO-NOT-UPSTREAM** (rbio cache size debug knob) |
 | `raid56-scrub-replace` | 10 | `2a30d9423f4e` | Filipe Manana, Zygo | new | patch 1 is Filipe's, already in btrfs/for-next (`ec0795c045c3`) |
-| `stripe-alloc` | 112 | `52074eb4d12e` | Zygo | from misc-next `covers/`, **stale**: written for 65 patches, marked DO NOT SEND AS IS | RFC |
+| `stripe-alloc` | 114 | `bcadbfc8ac02` | Zygo | from misc-next `covers/`, **stale**: written for 65 patches, marked DO NOT SEND AS IS | RFC |
 | `low-space` | 2 | `57034df182f0` | Zygo | from misc-next `covers/`, current | reserve off by default |
 | `dedupe-mtime` | 1 | `288d851bbbc2` | Ivan Kozik | new, 0/1 (drafted 2026-10-18) | Ivan's patch |
 | `dm-stripfault` | 2 | `9ab63d7ab0fa` | Zygo | new | **test fixtures, NOT for merge** (no `To:`) |
@@ -203,5 +203,5 @@ The fixup adds 640 lines and removes 16, in 10 files.
 - `balance-resume` patch 3 is offered for rejection, as its cover letter
   says.
 - Re-export with `scripts/export.sh` after any lane change.  The
-  directories reflect the lane at `misc-next/testing` `5eed033e8449`.
+  directories reflect the lane at `misc-next/testing` `12c700ee1440`.
   Commit the result with the misc-next SHAs that the script prints.
index e3c0748ecbae5c7c147ff1449f62aa414ab4769e..f35a1fde4b5c65073cb1069e053fc55d232d70cd 100644 (file)
@@ -37,7 +37,7 @@ index f097f9631a8574a5792c90cb72f82a012674879c..2f24b9e5dac6425e75e7dfeb4445c0f9
        bool "Btrfs experimental features"
        depends on BTRFS_FS
 diff --git a/fs/btrfs/block-group.c b/fs/btrfs/block-group.c
-index ce7727af7728c7ad9e3f0e5fb288dccb1fc9e753..77957a22428556aa1c30f04cfcf82859b7d3c961 100644
+index d908efc9a3b4265ec1fe10c0f6bc157483ba3170..b4a342b85b08a9a3893f53b63b5970dce1290a8c 100644
 --- a/fs/btrfs/block-group.c
 +++ b/fs/btrfs/block-group.c
 @@ -3511,6 +3511,8 @@ void btrfs_retire_open_stripes(struct btrfs_fs_info *fs_info,
@@ -76,7 +76,7 @@ index ce7727af7728c7ad9e3f0e5fb288dccb1fc9e753..77957a22428556aa1c30f04cfcf82859
  
                /*
                 * The stripe_alloc gate admitted writers against whole
-@@ -6896,7 +6911,15 @@ int btrfs_inc_block_group_ro(struct btrfs_block_group *cache,
+@@ -7068,7 +7083,15 @@ int btrfs_inc_block_group_ro(struct btrfs_block_group *cache,
        mutex_unlock(&fs_info->ro_block_group_mutex);
  
        btrfs_end_transaction(trans);
@@ -93,7 +93,7 @@ index ce7727af7728c7ad9e3f0e5fb288dccb1fc9e753..77957a22428556aa1c30f04cfcf82859
                btrfs_bg_unblock_nocow(cache);
        return ret;
  }
-@@ -6924,6 +6947,7 @@ void btrfs_dec_block_group_ro(struct btrfs_block_group *cache)
+@@ -7096,6 +7119,7 @@ void btrfs_dec_block_group_ro(struct btrfs_block_group *cache)
                sinfo->bytes_readonly -= btrfs_block_group_available_space(cache);
                list_del_init(&cache->ro_list);
                became_rw = true;
@@ -101,7 +101,7 @@ index ce7727af7728c7ad9e3f0e5fb288dccb1fc9e753..77957a22428556aa1c30f04cfcf82859
        }
        spin_unlock(&cache->lock);
        spin_unlock(&sinfo->lock);
-@@ -8531,6 +8555,30 @@ static bool reloc_reserve_wanted(struct btrfs_fs_info *fs_info,
+@@ -8703,6 +8727,30 @@ static bool reloc_reserve_wanted(struct btrfs_fs_info *fs_info,
        return READ_ONCE(sinfo->reloc_reserve);
  }
  
@@ -133,7 +133,7 @@ index ce7727af7728c7ad9e3f0e5fb288dccb1fc9e753..77957a22428556aa1c30f04cfcf82859
   * @bg left the reserve to go read-only and is writable again (or never went
   * read-only): rejoin, unless the reserve is off.  A surplus this makes is
 diff --git a/fs/btrfs/block-group.h b/fs/btrfs/block-group.h
-index 46150cd8ead04baa1890b626061e1183859c90f3..5f9a6a503b0ec7a4df30e8ef18b9f7ee321b0c44 100644
+index 8438b3d1d0bbf00a68da4555f6b7b2050a840d89..8a4357e22432ef45e50661f46ff8c324cb81e3a5 100644
 --- a/fs/btrfs/block-group.h
 +++ b/fs/btrfs/block-group.h
 @@ -163,6 +163,16 @@ enum btrfs_block_group_flags {
@@ -547,7 +547,7 @@ index 9fd81c739adbda3c50549a91fcf0796ee5723d2b..0a9b63ca7f6e1797f6ea53b82541df65
                s_info->bytes_stripe_margin +
                s_info->bytes_stripe_reserve +
 diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c
-index b715823b629ceac3b0702214adbc33066e6e0726..3651d1cdad99d241e2e18ec79d7f51611884f56f 100644
+index b103da91cf8f06231f3190f89b1377fc804500a8..613bb14a46cf538f5a308310e09f5245ac031920 100644
 --- a/fs/btrfs/sysfs.c
 +++ b/fs/btrfs/sysfs.c
 @@ -616,6 +616,8 @@ BTRFS_ATTR(debug_mount, stripe_rmw_audit_stats,
@@ -567,7 +567,7 @@ index b715823b629ceac3b0702214adbc33066e6e0726..3651d1cdad99d241e2e18ec79d7f5161
  SPACE_INFO_ATTR(disk_used);
  SPACE_INFO_ATTR(disk_total);
  SPACE_INFO_ATTR(reclaim_count);
-@@ -2619,6 +2622,61 @@ static ssize_t btrfs_devinfo_type_store(struct kobject *kobj,
+@@ -2648,6 +2651,61 @@ static ssize_t btrfs_devinfo_type_store(struct kobject *kobj,
  BTRFS_ATTR_RW(devid, type, btrfs_devinfo_type_show, btrfs_devinfo_type_store);
  #endif /* CONFIG_BTRFS_ALLOCATOR_HINTS */
  
index 9a31524329ff20d61aaadb803c69ffa60f4ad9d5..ef6ff29147023a19e71678a745506c5375b7e804 100644 (file)
@@ -1,7 +1,7 @@
-From 52074eb4d12ef3850757554d6533f24cd258c362 Mon Sep 17 00:00:00 2001
+From bcadbfc8ac020ccc7fddf79e5530322e3fb98747 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
-Date: Tue, 20 Oct 2026 01:07:13 -0400
-Subject: [RFC PATCH 000/112] btrfs: close the raid56 write hole for datacow with stripe-exclusive allocation
+Date: Wed, 21 Oct 2026 03:28:20 -0400
+Subject: [RFC PATCH 000/114] btrfs: close the raid56 write hole for datacow with stripe-exclusive allocation
 To: linux-btrfs@vger.kernel.org
 
 [STALE COVER -- DO NOT SEND AS IS.  This letter was written when the
@@ -1553,7 +1553,7 @@ locking into 60), the mount option has been removed from the series
 outright, and the property patch moved up to 4 so the policy has its
 interface from the start.
 
-Zygo Blaxell (112):
+Zygo Blaxell (114):
   btrfs: add btrfs_claim_free_stripe_run() for stripe-exclusive
     allocation
   btrfs: add open stripe run tracking for stripe-exclusive allocation
@@ -1741,9 +1741,12 @@ Zygo Blaxell (112):
     out
   btrfs: stripe_alloc: do not miss bitmap free space when debiting a
     trim
+  btrfs: log block group reclaim at debug level
+  btrfs: stripe_alloc: add stripe_reclaim_now to reclaim stripes on
+    demand
 
- fs/btrfs/block-group.c            | 3679 ++++++++++++++++++++++++++++-
- fs/btrfs/block-group.h            |  306 ++-
+ fs/btrfs/block-group.c            | 3855 ++++++++++++++++++++++++++++-
+ fs/btrfs/block-group.h            |  313 ++-
  fs/btrfs/block-rsv.c              |    9 +-
  fs/btrfs/btrfs_inode.h            |   53 +
  fs/btrfs/defrag.c                 |  161 ++
@@ -1756,23 +1759,23 @@ Zygo Blaxell (112):
  fs/btrfs/extent-tree.h            |   23 +-
  fs/btrfs/extent_io.c              |   18 +
  fs/btrfs/file.c                   |   74 +-
- fs/btrfs/free-space-cache.c       | 1264 +++++++++-
- fs/btrfs/free-space-cache.h       |   12 +
- fs/btrfs/fs.h                     |  271 +++
+ fs/btrfs/free-space-cache.c       | 1291 +++++++++-
+ fs/btrfs/free-space-cache.h       |   21 +
+ fs/btrfs/fs.h                     |  271 ++
  fs/btrfs/inode.c                  |  124 +-
  fs/btrfs/messages.c               |    3 +
  fs/btrfs/ordered-data.c           |   84 +
  fs/btrfs/ordered-data.h           |   14 +
  fs/btrfs/props.c                  |  154 ++
  fs/btrfs/props.h                  |    1 +
- fs/btrfs/raid56.c                 | 1493 +++++++++++-
+ fs/btrfs/raid56.c                 | 1493 ++++++++++-
  fs/btrfs/raid56.h                 |   34 +
  fs/btrfs/relocation.c             |  302 ++-
  fs/btrfs/relocation.h             |    2 +-
  fs/btrfs/space-info.c             |  339 ++-
  fs/btrfs/space-info.h             |   70 +-
  fs/btrfs/super.c                  |   42 +
- fs/btrfs/sysfs.c                  |  397 ++++
+ fs/btrfs/sysfs.c                  |  426 ++++
  fs/btrfs/tests/btrfs-tests.c      |    6 +
  fs/btrfs/tests/free-space-tests.c |  490 ++++
  fs/btrfs/transaction.c            |   74 +
@@ -1783,7 +1786,7 @@ Zygo Blaxell (112):
  fs/btrfs/zoned.c                  |   10 -
  fs/btrfs/zoned.h                  |    3 -
  include/trace/events/btrfs.h      |   60 +
- 41 files changed, 10075 insertions(+), 127 deletions(-)
+ 41 files changed, 10321 insertions(+), 129 deletions(-)
 
 
 base-commit: 0c48d26d46bdd6422bb91ba7f1c519a2993116dc
index b63dc828628562f3fb9e452ab643dc94e3b172be..eda601b29c8ccfc8af8803801aaa2ff21188e908 100644 (file)
@@ -1,7 +1,7 @@
 From f8aefd3a65eef1fc6ca498e3f7d34fd24bd2d1aa Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:26 -0400
-Subject: [RFC PATCH 001/112] btrfs: add btrfs_claim_free_stripe_run() for
+Subject: [RFC PATCH 001/114] btrfs: add btrfs_claim_free_stripe_run() for
  stripe-exclusive allocation
 To: linux-btrfs@vger.kernel.org
 
index ce6d58947398c43e1f0d5560ff6b81a54ea0f150..4f8db321869baecdbbc1bbc981a7ee9039a4b16a 100644 (file)
@@ -1,7 +1,7 @@
 From e4a454e34f91c3246fb8a922f3e472b546622e33 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:26 -0400
-Subject: [RFC PATCH 002/112] btrfs: add open stripe run tracking for
+Subject: [RFC PATCH 002/114] btrfs: add open stripe run tracking for
  stripe-exclusive allocation
 To: linux-btrfs@vger.kernel.org
 
index e6c45b2420f480dd6edbc9048f8d0bc5770c7046..13c824fd3a43d1aac51292e90795410555d7a391 100644 (file)
@@ -1,7 +1,7 @@
 From a240872477979ccf01ce59b6481be002eac1d59d Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:26 -0400
-Subject: [RFC PATCH 003/112] btrfs: add the stripe_alloc allocation policy for
+Subject: [RFC PATCH 003/114] btrfs: add the stripe_alloc allocation policy for
  raid56 data
 To: linux-btrfs@vger.kernel.org
 
index d8950a62b4720e0de2f6f70167c1252a5ae0b2bb..eed64421e5d8d4c780b69af58ca106af747d96e3 100644 (file)
@@ -1,7 +1,7 @@
 From 34e5adb74d1c65145b60d1a79aac6ba32cf9f5a2 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:26 -0400
-Subject: [RFC PATCH 004/112] btrfs: stripe_alloc: control the policy with a
+Subject: [RFC PATCH 004/114] btrfs: stripe_alloc: control the policy with a
  filesystem property
 To: linux-btrfs@vger.kernel.org
 
index d1ae306376378c51eeebefcb1e3ebf14c8c92dbe..21c6de89a4d594ac9bda568a86201de55d6633ef 100644 (file)
@@ -1,7 +1,7 @@
 From f4900f9d5af6f1fcf7328e5c15eafef33ac4e37d Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:26 -0400
-Subject: [RFC PATCH 005/112] btrfs: report stripe run data IO through the
+Subject: [RFC PATCH 005/114] btrfs: report stripe run data IO through the
  ordered extent lifecycle
 To: linux-btrfs@vger.kernel.org
 
index 83ad3a1c0546b580a8576ce8ca82958cd60919e1..93ca63aaf66737335bec0827db10fbf7543c50c4 100644 (file)
@@ -1,7 +1,7 @@
 From dc05aa382bdb79b8f81db968b8d96236d5350ebb Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:26 -0400
-Subject: [RFC PATCH 006/112] btrfs: retire stripe runs at commit and gate
+Subject: [RFC PATCH 006/114] btrfs: retire stripe runs at commit and gate
  stripe_alloc
 To: linux-btrfs@vger.kernel.org
 
index 15311f70f6e2fd43f468e35c3e3c7152984e52bb..db1e34e9eead5528c1a03f28f2c7af2d39ba9fe2 100644 (file)
@@ -1,7 +1,7 @@
 From c332d36b889a12ff768cdd448c5b31f72374837e Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:27 -0400
-Subject: [RFC PATCH 007/112] btrfs: add a write-hole invariant checker to the
+Subject: [RFC PATCH 007/114] btrfs: add a write-hole invariant checker to the
  raid56 write path
 To: linux-btrfs@vger.kernel.org
 
index fc5dd2ae6a2c47f7528668783b6a1915ca9836d1..13fab8b9a1031c81e16d85ec526a699ce44f5285 100644 (file)
@@ -1,7 +1,7 @@
 From ee439d57937755a384015dabef3bd5fea72283c7 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:27 -0400
-Subject: [RFC PATCH 008/112] btrfs: account stripe_alloc trapped free space
+Subject: [RFC PATCH 008/114] btrfs: account stripe_alloc trapped free space
  for honest statfs
 To: linux-btrfs@vger.kernel.org
 
index 7a69e8cb6072031705e875388ad326efba95c47b..02817e4e0db0d171d91c8a601624791e4afb7fe7 100644 (file)
@@ -1,7 +1,7 @@
 From a3f76d9a2a78b3892650a7be8380d418b53e761a Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:27 -0400
-Subject: [RFC PATCH 009/112] btrfs: stripe_alloc: keep an open run per size
+Subject: [RFC PATCH 009/114] btrfs: stripe_alloc: keep an open run per size
  band to trap less
 To: linux-btrfs@vger.kernel.org
 
index 16f81f986f6a113725a986013a4f8441626e7e5f..10e3faa64a4ddd3c630325a6c60bc49c288a22dc 100644 (file)
@@ -1,7 +1,7 @@
 From 05efb9e0701c1438661bf6ac88349252b9a2c8ee Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:27 -0400
-Subject: [RFC PATCH 010/112] btrfs: stripe_alloc: grow the frontier run
+Subject: [RFC PATCH 010/114] btrfs: stripe_alloc: grow the frontier run
  instead of stranding its tail
 To: linux-btrfs@vger.kernel.org
 
index b04a68fef992b54c662dfa64674d4ddfb2768665..41bd4541bc4e9fb9f8f0a959abc53c4588e44c39 100644 (file)
@@ -1,7 +1,7 @@
 From 19fdab82489824f188e6656c429f9f44d633c593 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:29 -0400
-Subject: [RFC PATCH 011/112] btrfs: raid56: batch stripe_alloc partial writes
+Subject: [RFC PATCH 011/114] btrfs: raid56: batch stripe_alloc partial writes
  into full-stripe writes
 To: linux-btrfs@vger.kernel.org
 
index 5d64f3bfccbb4aa3fa965a7329478768267d0ea2..5f127e7aebb17738111bfd3a6103ca2ee1a8e5d9 100644 (file)
@@ -1,7 +1,7 @@
 From d012dbc97bfc5dc275a789a7e3c464efa09851f6 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:30 -0400
-Subject: [RFC PATCH 012/112] btrfs: stripe_alloc: never claim stripes covered
+Subject: [RFC PATCH 012/114] btrfs: stripe_alloc: never claim stripes covered
  by a live run
 To: linux-btrfs@vger.kernel.org
 
index 78b23a99b161e6441c29b946d49044e4b9f1cbd0..d0545f2f6706a4d0a95d6619d024f5788427daa6 100644 (file)
@@ -1,7 +1,7 @@
 From 14839547353dd2ff06d13c3a321b286878abf7c1 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:31 -0400
-Subject: [RFC PATCH 013/112] btrfs: stripe_alloc: settle a logged extent's
+Subject: [RFC PATCH 013/114] btrfs: stripe_alloc: settle a logged extent's
  stripes at log commit
 To: linux-btrfs@vger.kernel.org
 
index 2135d538cd18b81a74cb473f757f930613bac6dc..f5f50cebf27b5c71b7a5a337eb88cb09b5308a88 100644 (file)
@@ -1,7 +1,7 @@
 From 36f2da531ea7492f5eadadcbcc1865d5e7bfec58 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:31 -0400
-Subject: [RFC PATCH 014/112] btrfs: stripe_alloc: private per-inode stripe
+Subject: [RFC PATCH 014/114] btrfs: stripe_alloc: private per-inode stripe
  runs for log-active inodes
 To: linux-btrfs@vger.kernel.org
 
index afabbfde842d91057a8de144ac69b24d1782f283..1d934a47978d54b01abbef5957a4ca422017d7fa 100644 (file)
@@ -1,7 +1,7 @@
 From 720d3e3ab3b0c4ed892edddf9a210034a30dd06b Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:37 -0400
-Subject: [RFC PATCH 015/112] btrfs: stripe_alloc: carry an inode's log tail
+Subject: [RFC PATCH 015/114] btrfs: stripe_alloc: carry an inode's log tail
  forward at fsync
 To: linux-btrfs@vger.kernel.org
 
index c877706eb6f5efff789359aefede7974dad098ad..4149842698c63fbad945b2e0b5f1425896454389 100644 (file)
@@ -1,7 +1,7 @@
 From bdc754626ebf4622fdb443bf7618eb55d626bf1c Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:38 -0400
-Subject: [RFC PATCH 016/112] btrfs: stripe_alloc: kick parked rbios before the
+Subject: [RFC PATCH 016/114] btrfs: stripe_alloc: kick parked rbios before the
  fast fsync's writeback wait
 To: linux-btrfs@vger.kernel.org
 
index a01a4f59de6b116331973f0911a91bdcdb52a4b1..ac763c097ce5619831f6f46696e257097e7d4bd0 100644 (file)
@@ -1,7 +1,7 @@
 From a737dc4313e4b2f0d01d818cb220ae1b79682676 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:38 -0400
-Subject: [RFC PATCH 017/112] btrfs: raid56: pad sub-stripe writes to full
+Subject: [RFC PATCH 017/114] btrfs: raid56: pad sub-stripe writes to full
  stripes in open runs
 To: linux-btrfs@vger.kernel.org
 
index e3a8f5a759390264856b8ecdc1ccf5eea2fba62e..6c2c62732aed6ba67f6787fee0e59f302cd866b2 100644 (file)
@@ -1,7 +1,7 @@
 From 56d65bde49a8f81bcbcbea7083ff885ceb6edeb7 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:39 -0400
-Subject: [RFC PATCH 018/112] btrfs: stripe_alloc: isolate nodatacow and
+Subject: [RFC PATCH 018/114] btrfs: stripe_alloc: isolate nodatacow and
  preallocated extents by stripe
 To: linux-btrfs@vger.kernel.org
 
index 6fa3129f7bd126c08ff500922624466479040681..5dc8bbf275ec8385087cb7654657908a89933b3f 100644 (file)
@@ -1,7 +1,7 @@
 From 7a2128a6af7b447537f4ce836354b9071f914cc4 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:40 -0400
-Subject: [RFC PATCH 019/112] btrfs: stripe_alloc: allow-rmw policy, and
+Subject: [RFC PATCH 019/114] btrfs: stripe_alloc: allow-rmw policy, and
  write-in-place for isolated nocow extents
 To: linux-btrfs@vger.kernel.org
 
index 5a3e0a3c74f15ee7e611d18ace158eb7cfad5658..7f0ecde9d17100874fcab876b06b579e23602da4 100644 (file)
@@ -1,7 +1,7 @@
 From ff24d23dc643075ff828e20456e26b7fafb21566 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:41 -0400
-Subject: [RFC PATCH 020/112] btrfs: stripe_alloc: persist nocow runs across
+Subject: [RFC PATCH 020/114] btrfs: stripe_alloc: persist nocow runs across
  commits and remounts
 To: linux-btrfs@vger.kernel.org
 
index 19d473c14b8769a2c595534932e7244f33d8f6f7..cd141150f2f56fbd89fe469869ea528ea907d586 100644 (file)
@@ -1,7 +1,7 @@
 From aee560fcabf96893e8ec946cfcb4693942e697c3 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:42 -0400
-Subject: [RFC PATCH 021/112] btrfs: raid56: do not park sync writes into nocow
+Subject: [RFC PATCH 021/114] btrfs: raid56: do not park sync writes into nocow
  runs
 To: linux-btrfs@vger.kernel.org
 
index 96aa4256db4aa5f6aa7ebedce9312bdabcceb2f5..17ab389a700cbe94d15b15a820047b390578e71b 100644 (file)
@@ -1,7 +1,7 @@
 From 45a865e1a62c17737f0839e3178dd45790b9999a Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:43 -0400
-Subject: [RFC PATCH 022/112] btrfs: raid56: expose parking statistics in sysfs
+Subject: [RFC PATCH 022/114] btrfs: raid56: expose parking statistics in sysfs
 To: linux-btrfs@vger.kernel.org
 
 /sys/fs/btrfs/<uuid>/stripe_park_stats reports lifetime counters for
index c28e9296ed677273bb50e738b6d8167113fc98e1..954e968cbb9f958fb28ea704a037f2595027e819 100644 (file)
@@ -1,7 +1,7 @@
 From a7895fde7eb406a254050d73cca1962ec84111e9 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:44 -0400
-Subject: [RFC PATCH 023/112] btrfs: raid56: skip parking for sync rbios
+Subject: [RFC PATCH 023/114] btrfs: raid56: skip parking for sync rbios
  finished by their unplug batch
 To: linux-btrfs@vger.kernel.org
 
index 3057e74d22fb956cbdd370b6788bfef00ed62fbd..d2a3dbd7b3ba0448145b53ecdabde5960a583acc 100644 (file)
@@ -1,7 +1,7 @@
 From 807bda7889b06996e4506808acb3a7536a460d8d Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:45 -0400
-Subject: [RFC PATCH 024/112] btrfs: stripe_alloc: count open stripe run
+Subject: [RFC PATCH 024/114] btrfs: stripe_alloc: count open stripe run
  remainders against data reservations
 To: linux-btrfs@vger.kernel.org
 
index 2a2f86c815738c948f50caac4c7ed1fe569e45c1..c1c175e80c5e7beb29ae744cbfab39507a2e8f12 100644 (file)
@@ -1,7 +1,7 @@
 From 697d334f1241e81347df4ce5a5eab5a7fa90352d Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:46 -0400
-Subject: [RFC PATCH 025/112] btrfs: stripe_alloc: pessimistic data reservation
+Subject: [RFC PATCH 025/114] btrfs: stripe_alloc: pessimistic data reservation
  margin
 To: linux-btrfs@vger.kernel.org
 
index a8df8ca7dec0d0bf47175e4da1493a0be97fa272..505205a3e5c972ad8969b0b988040c8febc3ccf8 100644 (file)
@@ -1,7 +1,7 @@
 From b639bc5d11cf7bddb4d4237ab937eadad2f0a677 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:47 -0400
-Subject: [RFC PATCH 026/112] btrfs: stripe_alloc: claim fully-free stripes
+Subject: [RFC PATCH 026/114] btrfs: stripe_alloc: claim fully-free stripes
  that span free space entries
 To: linux-btrfs@vger.kernel.org
 
index 772ba18b19f3e5c93bc5f80aa93fb58d78275607..cc8db7bc214c7cefbddbf18377c4b29221c23ac3 100644 (file)
@@ -1,7 +1,7 @@
 From 7a956b197fb633fae63d44cea3d3aba1ab518989 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:47 -0400
-Subject: [RFC PATCH 027/112] btrfs: stripe_alloc: warn when raid56 metadata is
+Subject: [RFC PATCH 027/114] btrfs: stripe_alloc: warn when raid56 metadata is
  not covered
 To: linux-btrfs@vger.kernel.org
 
index a5601ef64c1b9ce6f90bd1064eca825a940e7dcf..d2c37c0cede0cc3e73c513f6174ae4b1b8e425bd 100644 (file)
@@ -1,7 +1,7 @@
 From cde49689a8ca53fa1964cc93e1afc3ac5329368a Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:48 -0400
-Subject: [RFC PATCH 028/112] btrfs: stripe_alloc: report read-modify-write of
+Subject: [RFC PATCH 028/114] btrfs: stripe_alloc: report read-modify-write of
  uncovered stripes
 To: linux-btrfs@vger.kernel.org
 
index 5459e4313e3c11f3b1b93260b78725581497b077..de93750de53637d4636b656491568ddc27db635a 100644 (file)
@@ -1,7 +1,7 @@
 From 3758928da147179fac4d9ecdbd3e6c703eda36d1 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:49 -0400
-Subject: [RFC PATCH 029/112] btrfs: raid56: say whether a metadata
+Subject: [RFC PATCH 029/114] btrfs: raid56: say whether a metadata
  read-modify-write is a write hole
 To: linux-btrfs@vger.kernel.org
 
index 9e6591fbb46e7d94c8528e1eb64f32cc31d4ccef..b809ebd953a512b3ba9937dc0152007526328cb2 100644 (file)
@@ -1,7 +1,7 @@
 From 9bd6e8e81e4445fb261378e2f6386fc195cfe535 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:50 -0400
-Subject: [RFC PATCH 030/112] btrfs: stripe_alloc: tunable park deadlines, and
+Subject: [RFC PATCH 030/114] btrfs: stripe_alloc: tunable park deadlines, and
  say why padding declined
 To: linux-btrfs@vger.kernel.org
 
index cd9993f90eb94de42bba46d39140e079682e2311..fa4886e1acd771017daeedad8abc07d4b9fe276d 100644 (file)
@@ -1,7 +1,7 @@
 From addef1dec9727eecb057bc479be793829bd049f7 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:51 -0400
-Subject: [RFC PATCH 031/112] btrfs: stripe_alloc: trace why padding declined,
+Subject: [RFC PATCH 031/114] btrfs: stripe_alloc: trace why padding declined,
  at the moment it declined
 To: linux-btrfs@vger.kernel.org
 
index 7f8503c2dbd21e76e72684a01c0e09ee4e704b3a..13b719013ecc2176ddc370a5e1c1ee1338054bac 100644 (file)
@@ -1,7 +1,7 @@
 From ba78c5bdb23c33d2159470c5a0b11b182ab90aa8 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:52 -0400
-Subject: [RFC PATCH 032/112] btrfs: stripe_alloc: complete parked writes on
+Subject: [RFC PATCH 032/114] btrfs: stripe_alloc: complete parked writes on
  allocation coverage, not clocks
 To: linux-btrfs@vger.kernel.org
 
index 9670fc57dea5f0c50fa8ebc464a83dc0e1e3d623..b66b5fb321026c746397170f9e2c7d3829df1c20 100644 (file)
@@ -1,7 +1,7 @@
 From 470e5e7b910d21431589778c95abc362bc6c1712 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:53 -0400
-Subject: [RFC PATCH 033/112] btrfs: stripe_alloc: track per-sector liveness
+Subject: [RFC PATCH 033/114] btrfs: stripe_alloc: track per-sector liveness
  and pad from the map
 To: linux-btrfs@vger.kernel.org
 
index a5a8a2442ec840a0767ed0de8d2634bf346f31c9..f175c5cad0541a80d923dceca637c70b5d8a9cd2 100644 (file)
@@ -1,7 +1,7 @@
 From 5eecaf54aa231b7e7a6bc68f5f16b905aee89bbb Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:54 -0400
-Subject: [RFC PATCH 034/112] btrfs: stripe_alloc: count claimable whole-stripe
+Subject: [RFC PATCH 034/114] btrfs: stripe_alloc: count claimable whole-stripe
  supply directly
 To: linux-btrfs@vger.kernel.org
 
index fe952f15b01ff67940b14f577464c95265d9f706..06083968460c8463fcb262707594af8900adb462 100644 (file)
@@ -1,7 +1,7 @@
 From db091c0b27f9c41bde8be5b39e01f1dc63cf2a25 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:55 -0400
-Subject: [RFC PATCH 035/112] btrfs: raid56: adaptive park deadline from the
+Subject: [RFC PATCH 035/114] btrfs: raid56: adaptive park deadline from the
  parked-rbio backlog
 To: linux-btrfs@vger.kernel.org
 
index 743c8d93f6c945a23f60a10fa6c9d2e5701581ff..5580883ed4bb1396166e058db273079a70e9be62 100644 (file)
@@ -1,7 +1,7 @@
 From aff2aee44cbf33530bdb4578906ef260a084049d Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:56 -0400
-Subject: [RFC PATCH 036/112] btrfs: stripe_alloc: gate data admission on
+Subject: [RFC PATCH 036/114] btrfs: stripe_alloc: gate data admission on
  claimable whole-stripe supply
 To: linux-btrfs@vger.kernel.org
 
index e935c9367b23715060135748eaa6f2b0bb7f2066..6562b2330d9a80b84f170e861fb66faf24517b57 100644 (file)
@@ -1,7 +1,7 @@
 From 46fa2be98daec9cc359d0f216cd6725837f142b5 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:57 -0400
-Subject: [RFC PATCH 037/112] btrfs: stripe_alloc: cache a failed stripe run
+Subject: [RFC PATCH 037/114] btrfs: stripe_alloc: cache a failed stripe run
  scan per block group
 To: linux-btrfs@vger.kernel.org
 
index 0ca99d6beddc6c5cad306fef7cf7a1e580527664..ba6cb51451b911eb9ad3d40d3d5159197d98d1ba 100644 (file)
@@ -1,7 +1,7 @@
 From 4b4d6efe8d64cc91a3d94c7de469b449fa6cf16e Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:58 -0400
-Subject: [RFC PATCH 038/112] btrfs: stripe_meta: allocate tree blocks by whole
+Subject: [RFC PATCH 038/114] btrfs: stripe_meta: allocate tree blocks by whole
  stripes
 To: linux-btrfs@vger.kernel.org
 
index 405af4c28929dfed0b5769e93467e641e7dd2aa6..09699265f768f9eab6a8306a7268728f6ea32fc1 100644 (file)
@@ -1,7 +1,7 @@
 From 4d8e0574bf5043d83a69e17e41ec1e48fbaea885 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:17:59 -0400
-Subject: [RFC PATCH 039/112] btrfs: stripe_alloc: drain the legacy allocator's
+Subject: [RFC PATCH 039/114] btrfs: stripe_alloc: drain the legacy allocator's
  writes before arming the write-hole check at a runtime enable
 To: linux-btrfs@vger.kernel.org
 
index 07bd6b60ab898f3536a81bd62c952cb136fc1f93..38ed5745cfa38042130d53ae6b4185e3a8fa7139 100644 (file)
@@ -1,7 +1,7 @@
 From 3962fc1138c917d8bef1818bc692eb54b7e6e501 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:00 -0400
-Subject: [RFC PATCH 040/112] btrfs: stripe_alloc: keep the admitted bytes
+Subject: [RFC PATCH 040/114] btrfs: stripe_alloc: keep the admitted bytes
  placeable when a group goes read-only
 To: linux-btrfs@vger.kernel.org
 
index 7580db87f3cdc7807a579805531d5c1b57a4e15e..bef6822d46b413d3576f1c27b7bfea3ebbc6a72c 100644 (file)
@@ -1,7 +1,7 @@
 From 8fd5354672fd14d804216a575c2ec72e5ad6c950 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:01 -0400
-Subject: [RFC PATCH 041/112] btrfs: stripe_alloc: never let relocation wait on
+Subject: [RFC PATCH 041/114] btrfs: stripe_alloc: never let relocation wait on
  the whole-stripe gate
 To: linux-btrfs@vger.kernel.org
 
index b656ba48cf41bd4e28a1f9f9fd7c26f85cffbbc3..60754e8fb05df1764054f8e218b027855de17499 100644 (file)
@@ -1,7 +1,7 @@
 From 6cbe3c02a360975097941fd3a390fd607a3c9c1f Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:02 -0400
-Subject: [RFC PATCH 042/112] btrfs: stripe_alloc: give a queued stripe group a
+Subject: [RFC PATCH 042/114] btrfs: stripe_alloc: give a queued stripe group a
  chunk to relocate into when the supply is short
 To: linux-btrfs@vger.kernel.org
 
index d92c789e9b47af8b9065a6281cfe3df6f5ce5391..1642a2121009553c126410116dcc70aa946f4a17 100644 (file)
@@ -1,7 +1,7 @@
 From 62886760223cf86cadcd40bfca85e7db871ef4f0 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:03 -0400
-Subject: [RFC PATCH 043/112] btrfs: stripe_alloc: charge relocation a margin
+Subject: [RFC PATCH 043/114] btrfs: stripe_alloc: charge relocation a margin
  per reservation, not per extent
 To: linux-btrfs@vger.kernel.org
 
index c912095fdd3abb4da0e330f55cc7668c04f8b8d7..e559809b2811f034edfaeb2b9d3c555b82d3ca61 100644 (file)
@@ -1,7 +1,7 @@
 From acf9c88ceacb8d92f6a5fbc83674f1d3196864c3 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:04 -0400
-Subject: [RFC PATCH 044/112] btrfs: stripe_alloc: keep the relocation group's
+Subject: [RFC PATCH 044/114] btrfs: stripe_alloc: keep the relocation group's
  stripes out of the admission supply
 To: linux-btrfs@vger.kernel.org
 
index 6bcff40911e0ab0dbd7a1de99dd91ed0efc107cc..c10b3190792186017f908f756e5e76ec1754a039 100644 (file)
@@ -1,7 +1,7 @@
 From 8907d8718d7362ec87fc3f669bb819a07b1a9f57 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:05 -0400
-Subject: [RFC PATCH 045/112] btrfs: stripe_alloc: let a data write fall back
+Subject: [RFC PATCH 045/114] btrfs: stripe_alloc: let a data write fall back
  to the relocation group rather than drop
 To: linux-btrfs@vger.kernel.org
 
index d62fe29427d2a689880758380a8f039e440f5afb..9dffd44188c492c29bc91309f78bfa9ee4991c89 100644 (file)
@@ -1,7 +1,7 @@
 From 1646d2e379cbc9675bd69a08ea24ba28af54c64d Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:06 -0400
-Subject: [RFC PATCH 046/112] btrfs: stripe_alloc: hand groups full of trapped
+Subject: [RFC PATCH 046/114] btrfs: stripe_alloc: hand groups full of trapped
  free space to the reclaim worker
 To: linux-btrfs@vger.kernel.org
 
index 982b8c7323f2c2d7d43c72862d34835ed6494296..10bb2202bb76b0b638f99f3a82c6e86bb4a8887e 100644 (file)
@@ -1,7 +1,7 @@
 From 15b5f3d5a5f85702371cb95182b011bfcf3754e6 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:06 -0400
-Subject: [RFC PATCH 047/112] btrfs: stripe_alloc: relocate a queued stripe
+Subject: [RFC PATCH 047/114] btrfs: stripe_alloc: relocate a queued stripe
  group even while it has reserved or pinned bytes
 To: linux-btrfs@vger.kernel.org
 
index b3194aa553ad368fe999841a6fe46b609e9a4add..e30205558389cdccf2ba756d8143436b4cd9a4e2 100644 (file)
@@ -1,7 +1,7 @@
 From 6c71f48b7ba8a42c9cf25656b8c5e199be0e22e8 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:07 -0400
-Subject: [RFC PATCH 048/112] btrfs: stripe_meta: maintain trapped free space
+Subject: [RFC PATCH 048/114] btrfs: stripe_meta: maintain trapped free space
  for metadata groups like data
 To: linux-btrfs@vger.kernel.org
 
index 02e83893cfae188b97e65c92cb86932eb361b2e7..bb7eeadefc2afdf9fb4050dc1e8ffc2565c60964 100644 (file)
@@ -1,7 +1,7 @@
 From dcb5f0fbf44351d3d5ef2175b66c35649609deb8 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:08 -0400
-Subject: [RFC PATCH 049/112] btrfs: stripe_meta: back the global reserve with
+Subject: [RFC PATCH 049/114] btrfs: stripe_meta: back the global reserve with
  usable stripes, and say when a tree block finds none
 To: linux-btrfs@vger.kernel.org
 
index 198eb238b5e2c20711b6723bb4656da9560fa76d..287cd0779c1d3d96662ad398245440680d578366 100644 (file)
@@ -1,7 +1,7 @@
 From 04bca28a857b67ce23c2b2a8805cb17eca9bbd4b Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:12 -0400
-Subject: [RFC PATCH 050/112] btrfs: stripe_meta: hold back whole stripes so
+Subject: [RFC PATCH 050/114] btrfs: stripe_meta: hold back whole stripes so
  tree blocks always land and trapped groups can be reclaimed
 To: linux-btrfs@vger.kernel.org
 
index b3b0183f4d837b9887f9fa5f3c108cc08e92721f..58a07784ced0529d621242bb9b5333521e3a6ed3 100644 (file)
@@ -1,7 +1,7 @@
 From 7cff178b3a5b7d534853720b13afc9fb1021acbd Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:13 -0400
-Subject: [RFC PATCH 051/112] btrfs: stripe_meta: do not steal from the global
+Subject: [RFC PATCH 051/114] btrfs: stripe_meta: do not steal from the global
  reserve below the relocation reserve
 To: linux-btrfs@vger.kernel.org
 
index 7bb22180334d9d9a0bc8c0315dcd3e7e738dad90..8bf247c4fb0ed82b408155d3737dd57992d4fe3f 100644 (file)
@@ -1,7 +1,7 @@
 From dafd9cfe4b2fdba8bea8b5293b466176a027531b Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:14 -0400
-Subject: [RFC PATCH 052/112] btrfs: stripe_meta: let the transaction
+Subject: [RFC PATCH 052/114] btrfs: stripe_meta: let the transaction
  machinery's own reservations draw on the reserve
 To: linux-btrfs@vger.kernel.org
 
index af2d3c1c281d24800da62cf301c85f6683133114..8d951e7595d7677041080baaee6c527191683615 100644 (file)
@@ -1,7 +1,7 @@
 From 4186b21d2136070c7e62e6ac601cb081752329c1 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:15 -0400
-Subject: [RFC PATCH 053/112] btrfs: stripe_meta: let a group go read-only for
+Subject: [RFC PATCH 053/114] btrfs: stripe_meta: let a group go read-only for
  relocation against the reserve
 To: linux-btrfs@vger.kernel.org
 
index e3376f118682aa48eb115e60d0f69c09b3e2d1a9..2a930b84abc7fa2e91d9c300e5bccb69d98d4d37 100644 (file)
@@ -1,7 +1,7 @@
 From a672e3917d47044aece23d6b98ff97c10ef29f16 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:16 -0400
-Subject: [RFC PATCH 054/112] btrfs: stripe_alloc: show per-group trapped bytes
+Subject: [RFC PATCH 054/114] btrfs: stripe_alloc: show per-group trapped bytes
  in the space info dump
 To: linux-btrfs@vger.kernel.org
 
index b5124704188da542d37282d3a7d68a028c1cc106..8dee944a293c9276bd2843a1a293f0f73c04461c 100644 (file)
@@ -1,7 +1,7 @@
 From 7310972a63b8be7d9d744724270bf91f6e6f099b Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:17 -0400
-Subject: [RFC PATCH 055/112] btrfs: stripe_alloc: tell a dead tree block from
+Subject: [RFC PATCH 055/114] btrfs: stripe_alloc: tell a dead tree block from
  a live one in the metadata RMW audit
 To: linux-btrfs@vger.kernel.org
 
index 02a61f0dca31e6f7e1cb1a6d5da8e58c53c24e29..479c09e50b3467e682a635260c8c77bdce370d3e 100644 (file)
@@ -1,7 +1,7 @@
 From 3ba7acf2e3c5e7ab07529aff1b016b49f0a8de40 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:18 -0400
-Subject: [RFC PATCH 056/112] btrfs: stripe_alloc: do not read an inline
+Subject: [RFC PATCH 056/114] btrfs: stripe_alloc: do not read an inline
  backref off a keyed-ref extent item
 To: linux-btrfs@vger.kernel.org
 
index 8faea9b83b89a40763daf7e73ffd6e8c7b0799bd..1cd441b100a0058d71f3ebe972bd0e55cffefdc5 100644 (file)
@@ -1,7 +1,7 @@
 From 72db9e2da64153d2e8f18458e596483dab5902e5 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:19 -0400
-Subject: [RFC PATCH 057/112] btrfs: stripe_alloc: count whole stripes stranded
+Subject: [RFC PATCH 057/114] btrfs: stripe_alloc: count whole stripes stranded
  behind live runs as trapped
 To: linux-btrfs@vger.kernel.org
 
index 2382eb655864c8ba794056ba8ebeb182823b8576..5003bf560192b2c1105a3b028293bd4d525fd19c 100644 (file)
@@ -1,7 +1,7 @@
 From 8d46931722459e4cace54fe7215127319d21744a Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:19 -0400
-Subject: [RFC PATCH 058/112] btrfs: stripe_alloc: give nocow extents a private
+Subject: [RFC PATCH 058/114] btrfs: stripe_alloc: give nocow extents a private
  run only while they may be written in place
 To: linux-btrfs@vger.kernel.org
 
index e5166d9b6da77e4c09d0e3160a75812f8c2209b8..8dbd5a6c1ddde791eb60162637d724462d4cc2d7 100644 (file)
@@ -1,7 +1,7 @@
 From 3e051c111fc267a5cc6ba4d9697008d527787ebe Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:20 -0400
-Subject: [RFC PATCH 059/112] btrfs: stripe_alloc: count nocow run lifecycles
+Subject: [RFC PATCH 059/114] btrfs: stripe_alloc: count nocow run lifecycles
  and stranded stripes in sysfs
 To: linux-btrfs@vger.kernel.org
 
index 150f555a2b4b50e200fc6f5b87ba806df86c0758..e601b301aac73cdbb507811461d5583672d7b25b 100644 (file)
@@ -1,7 +1,7 @@
 From e6d0215595c784679b9190d820a1ece1741b7bc0 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:21 -0400
-Subject: [RFC PATCH 060/112] btrfs: stripe_alloc: hold a stripe of margin
+Subject: [RFC PATCH 060/114] btrfs: stripe_alloc: hold a stripe of margin
  across a preallocation
 To: linux-btrfs@vger.kernel.org
 
index 9fd05254a0a9151c47756d52059ea981ec35f101..8304f13637378abdb077c8138adf2ba48a21fa3e 100644 (file)
@@ -1,7 +1,7 @@
 From 9c3f5e2a5a7c2e6b251c0014c132b7341065a71f Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:22 -0400
-Subject: [RFC PATCH 061/112] btrfs: stripe_meta: carry raid56 metadata groups
+Subject: [RFC PATCH 061/114] btrfs: stripe_meta: carry raid56 metadata groups
  through a runtime enable or disable
 To: linux-btrfs@vger.kernel.org
 
index 64ead9890d748fc04241ebaf98da67e964121a8a..5418beadf0f13263fca984fb599a4d3e22e3e688 100644 (file)
@@ -1,7 +1,7 @@
 From 6269c79f5f2d9e468f4bb02952cb0cef6dae89d4 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:23 -0400
-Subject: [RFC PATCH 062/112] btrfs: stripe_alloc: return a group's allocation
+Subject: [RFC PATCH 062/114] btrfs: stripe_alloc: return a group's allocation
  cluster before scanning its stripes
 To: linux-btrfs@vger.kernel.org
 
index 0130381b97ffacca2c4ffac306a8f5ad5ac7d2fb..f514e678f3cb918f39ac1bed1c28faae21c923e0 100644 (file)
@@ -1,7 +1,7 @@
 From ec648ceaf7412f288964cd2f969132a3c886478a Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:24 -0400
-Subject: [RFC PATCH 063/112] btrfs: stripe_alloc: release open stripe runs
+Subject: [RFC PATCH 063/114] btrfs: stripe_alloc: release open stripe runs
  when a mount fails or an aborted filesystem unmounts
 To: linux-btrfs@vger.kernel.org
 
index 5eb5f05987d869e048624573085e58f9824036ca..a14809d269e2f6d47452fd2979b6259aaa764df3 100644 (file)
@@ -1,7 +1,7 @@
 From d7611f8eab54eddec75365914a085acbfe30808f Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 19 Sep 2026 13:18:25 -0400
-Subject: [RFC PATCH 064/112] btrfs: stripe_alloc: say at mount whether the
+Subject: [RFC PATCH 064/114] btrfs: stripe_alloc: say at mount whether the
  policy is on
 To: linux-btrfs@vger.kernel.org
 
index d0ebe55549e6534e88814116fdf07822c0114841..947d54e09c38cfab5a339c60cdc8e6df4162504a 100644 (file)
@@ -1,7 +1,7 @@
 From 5f54dd568678edd647946e21d412f18c0aa344a4 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sun, 20 Sep 2026 01:33:09 -0400
-Subject: [RFC PATCH 065/112] btrfs: stripe_meta: cover raid56 system chunks
+Subject: [RFC PATCH 065/114] btrfs: stripe_meta: cover raid56 system chunks
 To: linux-btrfs@vger.kernel.org
 
 The chunk tree lives in system chunks, which carry no METADATA bit, so the
index f772311fc44c975f5a6be0a2a8930a850865e346..732dcad22839b469a8b3b90ea7ad71a388694c13 100644 (file)
@@ -1,7 +1,7 @@
 From b57d7b9fd543eb50dcd6f234944b65cc5cc12eed Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Wed, 23 Sep 2026 01:47:12 -0400
-Subject: [RFC PATCH 066/112] btrfs: stripe_alloc: close dead nocow stripe runs
+Subject: [RFC PATCH 066/114] btrfs: stripe_alloc: close dead nocow stripe runs
  at commit
 To: linux-btrfs@vger.kernel.org
 
index 054c423227aa51e10a3004c9026bf6ae0bd5d2d8..4cf16cac05200c2c7aabd1ee5f2c77c0b0a43aa5 100644 (file)
@@ -1,7 +1,7 @@
 From be6877e4568053ef1d4b08e76f14ff5d7514345d Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Wed, 23 Sep 2026 15:30:45 -0400
-Subject: [RFC PATCH 067/112] btrfs: stripe_alloc: do not round a full stripe
+Subject: [RFC PATCH 067/114] btrfs: stripe_alloc: do not round a full stripe
  with power-of-two macros
 To: linux-btrfs@vger.kernel.org
 
index 636630b03be78127a9c133d77622c0a9c76b39cf..16e7a2e4d2730390004103e3374489278b747eac 100644 (file)
@@ -1,7 +1,7 @@
 From 24b8a9adadc5b04e224ff065efde5cde14e3e2a3 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Thu, 24 Sep 2026 02:21:12 -0400
-Subject: [RFC PATCH 068/112] btrfs: stripe_alloc: do not wait for stripe runs
+Subject: [RFC PATCH 068/114] btrfs: stripe_alloc: do not wait for stripe runs
  to drain on an errored filesystem
 To: linux-btrfs@vger.kernel.org
 
index e816a5e53dc7154e96907dcd42bf654c546cf7f9..682ba530e77b6e893e0691cb529ce3eeb3bf9924 100644 (file)
@@ -1,7 +1,7 @@
 From 22e42d6d532311a8e03edbb8b36a73668ad6e173 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Thu, 24 Sep 2026 07:55:39 -0400
-Subject: [RFC PATCH 069/112] btrfs: stripe_alloc: end the commit-time and log
+Subject: [RFC PATCH 069/114] btrfs: stripe_alloc: end the commit-time and log
  drains on an errored filesystem too
 To: linux-btrfs@vger.kernel.org
 
index af2cc81e416e75aee151abc06b44655be2556c88..a32c23cf1c9ad2bbb871aa0df1c14712e0f4e9ef 100644 (file)
@@ -1,7 +1,7 @@
 From 9997aec01d002fa95fc96f0372fdab6f30f74882 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Tue, 29 Sep 2026 05:29:38 -0400
-Subject: [RFC PATCH 070/112] btrfs: stripe_alloc: compact mostly live groups
+Subject: [RFC PATCH 070/114] btrfs: stripe_alloc: compact mostly live groups
  instead of skipping them
 To: linux-btrfs@vger.kernel.org
 
index 4cb56fadd5b7d91c72674bcd41de49e34040daca..5b9cfcf46c7fc007d34f715301c1a7309de74e4a 100644 (file)
@@ -1,7 +1,7 @@
 From a4e8a846911c3922128fb10291ebf3a8113e0b09 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Wed, 30 Sep 2026 18:07:52 -0400
-Subject: [RFC PATCH 071/112] btrfs: stripe_alloc: attribute each data
+Subject: [RFC PATCH 071/114] btrfs: stripe_alloc: attribute each data
  read-modify-write to why padding declined
 To: linux-btrfs@vger.kernel.org
 
index a59962fdd737d52af8d80eb6cd8a07e93182613c..786c5455a0544dd9748bd967084ba5c56e5c87d7 100644 (file)
@@ -1,7 +1,7 @@
 From e463b8e99b116061c0753e4af1e2aa570dec4222 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Wed, 30 Sep 2026 18:07:56 -0400
-Subject: [RFC PATCH 072/112] btrfs: stripe_alloc: optionally audit data
+Subject: [RFC PATCH 072/114] btrfs: stripe_alloc: optionally audit data
  read-modify-writes against the committed extent tree
 To: linux-btrfs@vger.kernel.org
 
index b898f7f561c5ec0ad44ecf5f8cbf9591d853e71d..e4bc4b8799b4c7e120910932d5d80860d425c03c 100644 (file)
@@ -1,7 +1,7 @@
 From 44a1ac24083c094fe75d4a6f4eb9ed05b13af283 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Thu, 1 Oct 2026 00:57:50 -0400
-Subject: [RFC PATCH 073/112] btrfs: stripe_alloc: keep relocation's stripe
+Subject: [RFC PATCH 073/114] btrfs: stripe_alloc: keep relocation's stripe
  runs until relocation ends
 To: linux-btrfs@vger.kernel.org
 
index 27530e36f66f03db2e5d7206044a7ad39786ad32..f840ee5724dc3cb15bad81613dbd9fcb930a81a1 100644 (file)
@@ -1,7 +1,7 @@
 From c0886d0274af757dfa3f0be8a04667ea3e62c481 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Thu, 1 Oct 2026 04:20:09 -0400
-Subject: [RFC PATCH 074/112] btrfs: stripe_alloc: let relocation allocate a
+Subject: [RFC PATCH 074/114] btrfs: stripe_alloc: let relocation allocate a
  data chunk before it fails
 To: linux-btrfs@vger.kernel.org
 
index 5f6fed8cefa2708899bfb0af35fec8fd3eeb1132..4b30c94569218d313a414cb22c4e05a7c7593f6c 100644 (file)
@@ -1,7 +1,7 @@
 From ec70174eab1dd00bf3a251c225b0398b4bd8e490 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Thu, 1 Oct 2026 12:14:49 -0400
-Subject: [RFC PATCH 075/112] btrfs: stripe_alloc: keep a stripe in the rbio
+Subject: [RFC PATCH 075/114] btrfs: stripe_alloc: keep a stripe in the rbio
  cache until its run has written all of it
 To: linux-btrfs@vger.kernel.org
 
index 4b5a5076ed7084066707ef17fee4285730969de5..46885f38fd5d3233da19b70314c0cb5145e0930a 100644 (file)
@@ -1,7 +1,7 @@
 From 42d7b94bd97d9a38d48feb9f02a358654e5c4450 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 2 Oct 2026 02:41:44 -0400
-Subject: [RFC PATCH 076/112] btrfs: stripe_alloc: pad a stripe's allocated
+Subject: [RFC PATCH 076/114] btrfs: stripe_alloc: pad a stripe's allocated
  sectors whose write is still to come
 To: linux-btrfs@vger.kernel.org
 
index bbf55ca1fffb6a181e2ae0b66bb0ab8f16dd88b9..dc157405ad5a4c95a62464f723482383cc6273d3 100644 (file)
@@ -1,7 +1,7 @@
 From 2cf425545c69f0ec8986ea2d89e4aea793b853f4 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 3 Oct 2026 18:57:15 -0400
-Subject: [RFC PATCH 077/112] btrfs: stripe_alloc: apply the property before
+Subject: [RFC PATCH 077/114] btrfs: stripe_alloc: apply the property before
  tree-log replay
 To: linux-btrfs@vger.kernel.org
 
index cab0cd4ef7319a59b35be84faab416d83530bae0..27afdcbaf744c144cdb214f15ba1111a3132a751 100644 (file)
@@ -1,7 +1,7 @@
 From 0e3f67ce778d663cc44348ec94ac9ef7962b170c Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sun, 4 Oct 2026 12:26:45 -0400
-Subject: [RFC PATCH 078/112] btrfs: stripe_alloc: count refused rbio pins and
+Subject: [RFC PATCH 078/114] btrfs: stripe_alloc: count refused rbio pins and
  track rbio cache high water
 To: linux-btrfs@vger.kernel.org
 
index 63b5723f2b3ffc75c69456acdd0ca1c465e10711..5563e558f878d8023cbf7a75e37ebae9f124227f 100644 (file)
@@ -1,7 +1,7 @@
 From d0d2b845edfcf2bcfc16d4a2562f087f8ee560ce Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sun, 4 Oct 2026 12:35:08 -0400
-Subject: [RFC PATCH 079/112] btrfs: stripe_alloc: sweep stale rbio pins, and
+Subject: [RFC PATCH 079/114] btrfs: stripe_alloc: sweep stale rbio pins, and
  commit when live pins run low
 To: linux-btrfs@vger.kernel.org
 
index 68719a4d9e048a9eb51371ad94af59a89e0fd28f..dc19929c0f90718e322b8a7dd4d8cbaab66b58e8 100644 (file)
@@ -1,7 +1,7 @@
 From d3436b335250591f54e6bd2c2413d7ca419d5071 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sun, 4 Oct 2026 17:46:19 -0400
-Subject: [RFC PATCH 080/112] btrfs: stripe_alloc: break rbio pins and open
+Subject: [RFC PATCH 080/114] btrfs: stripe_alloc: break rbio pins and open
  stripe runs down by run class
 To: linux-btrfs@vger.kernel.org
 
index 4b1e8c7bea70424451c1462b2bc7368e4f9637b4..9d9e7c208634386b5f5bae8b55a670c056816532 100644 (file)
@@ -1,7 +1,7 @@
 From 944f4a24fde392601ff2682d2eb6bc17281439f0 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sun, 4 Oct 2026 23:16:03 -0400
-Subject: [RFC PATCH 081/112] btrfs: stripe_alloc: give each log commit its own
+Subject: [RFC PATCH 081/114] btrfs: stripe_alloc: give each log commit its own
  metadata stripe run
 To: linux-btrfs@vger.kernel.org
 
index 6dc3492164f0214cf4fdb5778aad26a2cd7a6972..7348e73eea8e0c598ef20be8179e5f5e52ae5540 100644 (file)
@@ -1,7 +1,7 @@
 From 6b52ac73acdfa4e81dc4e827b1b54ce8bc26ce25 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Mon, 5 Oct 2026 21:13:17 -0400
-Subject: [RFC PATCH 082/112] btrfs: stripe_alloc: don't make a parked rbio
+Subject: [RFC PATCH 082/114] btrfs: stripe_alloc: don't make a parked rbio
  wait for sectors that will never be written
 To: linux-btrfs@vger.kernel.org
 
index 99fc3f0f88641b72fa94a299e8a323ef5a0340f8..2c180c37991a7aa09c0a308408f9fed69b0db1dc 100644 (file)
@@ -1,7 +1,7 @@
 From b0b570899c985d633a47d9dcb1144ccd2fda84e7 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Tue, 6 Oct 2026 00:11:38 -0400
-Subject: [RFC PATCH 083/112] btrfs: stripe_alloc: share LOG data runs per log
+Subject: [RFC PATCH 083/114] btrfs: stripe_alloc: share LOG data runs per log
  transaction
 To: linux-btrfs@vger.kernel.org
 
index 2563fd9e010e83364cdda71d4234646c2d72bdce..7fdf823a08ab1d0d3fa9b414ddc19225b3c9d3d5 100644 (file)
@@ -1,7 +1,7 @@
 From edc9be873c6a389b67257aa21cf32bde2ae54133 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Tue, 6 Oct 2026 12:40:29 -0400
-Subject: [RFC PATCH 084/112] btrfs: stripe_alloc: let relocation allocate as
+Subject: [RFC PATCH 084/114] btrfs: stripe_alloc: let relocation allocate as
  many data chunks as its reservation needs
 To: linux-btrfs@vger.kernel.org
 
index 798828a880558edc33d64bb7f77138fb6402b146..34294c00620a909d18cc6a8636e8f76d4671b751 100644 (file)
@@ -1,7 +1,7 @@
 From 526336dd1cb564cd03541dc94f64468e79f1b779 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 00:17:47 -0400
-Subject: [RFC PATCH 085/112] btrfs: stripe_alloc: key private stripe runs by
+Subject: [RFC PATCH 085/114] btrfs: stripe_alloc: key private stripe runs by
  subvolume and inode
 To: linux-btrfs@vger.kernel.org
 
index 0fbfcc18e11967fc36c653b63624bfde67dd2a24..0443a114457c5776cbee01c36f0fc397b6f75797 100644 (file)
@@ -1,7 +1,7 @@
 From 0249bfbd944033b29a18765023fefb579cba70df Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 00:49:17 -0400
-Subject: [RFC PATCH 086/112] btrfs: stripe_alloc: do not treat an allocation
+Subject: [RFC PATCH 086/114] btrfs: stripe_alloc: do not treat an allocation
  error as a found extent
 To: linux-btrfs@vger.kernel.org
 
index ae225ea1391e46afa093ebb43d3d4a355eb4f20e..e59764820c939b98bf77d82d3dcf80b59176198a 100644 (file)
@@ -1,7 +1,7 @@
 From f1dcc0c8b7309bba72e1afcf78102c4c3ac2c5cf Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 00:50:45 -0400
-Subject: [RFC PATCH 087/112] btrfs: stripe_alloc: mark an ended ordered
+Subject: [RFC PATCH 087/114] btrfs: stripe_alloc: mark an ended ordered
  extent's sectors written
 To: linux-btrfs@vger.kernel.org
 
index 57ee274c28ad565c1058c7e3aeba3f47c82865f1..aafa8a2259bdb315ecd896c809ec4aa2d25559c9 100644 (file)
@@ -1,7 +1,7 @@
 From 1453b4c48e63017f615c10544b4235189786cf97 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 00:51:15 -0400
-Subject: [RFC PATCH 088/112] btrfs: stripe_alloc: read the shared LOG run mode
+Subject: [RFC PATCH 088/114] btrfs: stripe_alloc: read the shared LOG run mode
  once per log settle
 To: linux-btrfs@vger.kernel.org
 
index 0b491328b15931ddbabe71eb936eefa6d8da945a..3ad71811402331cb8488abcd8c85c8c8ad296534 100644 (file)
@@ -1,7 +1,7 @@
 From 6ca617a49aa15b8ec9b8c7081d1eb2d7507f3f17 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 00:54:41 -0400
-Subject: [RFC PATCH 089/112] btrfs: stripe_alloc: remove only the set bits of
+Subject: [RFC PATCH 089/114] btrfs: stripe_alloc: remove only the set bits of
  a bitmap when claiming a split run
 To: linux-btrfs@vger.kernel.org
 
index 21777faeeebf8f0cecacd16519cf3a425b6c9214..a8f2ebdd0dca752a745f383dbf4ac43329625e85 100644 (file)
@@ -1,7 +1,7 @@
 From 4601d72544d8953d695c8f433281690b56ef8c80 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 00:54:48 -0400
-Subject: [RFC PATCH 090/112] btrfs: stripe_alloc: claim a stripe tail in one
+Subject: [RFC PATCH 090/114] btrfs: stripe_alloc: claim a stripe tail in one
  free space lock section
 To: linux-btrfs@vger.kernel.org
 
index 188c018e67e38bd889c05a3596e012e6cf699274..ff67d668e97df6ef88cf92d05c4cd681189ee7a0 100644 (file)
@@ -1,7 +1,7 @@
 From bbaa5b42965f3c3a970b39e326f3b6c1dfe9d04c Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 00:57:34 -0400
-Subject: [RFC PATCH 091/112] btrfs: stripe_alloc: keep the stripe totals
+Subject: [RFC PATCH 091/114] btrfs: stripe_alloc: keep the stripe totals
  consistent with the groups during the commit scan
 To: linux-btrfs@vger.kernel.org
 
index ba1ca3348a3da59d052c5531b7aa3f360750ae30..8ddd62038d070498b838af14b403540d40fe7644 100644 (file)
@@ -1,7 +1,7 @@
 From 3b6b54b00a4ed9c96d123c335c93e3114923d4b4 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 00:58:45 -0400
-Subject: [RFC PATCH 092/112] btrfs: stripe_alloc: do not delete an unused
+Subject: [RFC PATCH 092/114] btrfs: stripe_alloc: do not delete an unused
  block group that still has stripe runs
 To: linux-btrfs@vger.kernel.org
 
index b563ae1cb0d8afef8ef7814a8428f956d5d6b087..f7ca8ea59c59c9724941e8a6b158d64f9b8cff6a 100644 (file)
@@ -1,7 +1,7 @@
 From ca3101c29dcae3ba3d91ba482cf52ec293a12252 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 01:00:24 -0400
-Subject: [RFC PATCH 093/112] btrfs: stripe_meta: commit before waiting for
+Subject: [RFC PATCH 093/114] btrfs: stripe_meta: commit before waiting for
  metadata runs when making a group read-only
 To: linux-btrfs@vger.kernel.org
 
index 7be6257812780e297c91747ffcf85cb2f9a41345..d7f5e0c5de222a3589ca66328c83233b45eb64d9 100644 (file)
@@ -1,7 +1,7 @@
 From e3dbeeb1a01086b92143ecb56f6c1725a08dbd44 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 01:01:51 -0400
-Subject: [RFC PATCH 094/112] btrfs: raid56: do not read tree blocks under the
+Subject: [RFC PATCH 094/114] btrfs: raid56: do not read tree blocks under the
  stripe lock in the metadata RMW audit
 To: linux-btrfs@vger.kernel.org
 
index 8038663854aa1f8e10f93f94ffe02b05b9719750..33ea1fc72c7557cce785fe5dc46f4caf868a9ce5 100644 (file)
@@ -1,7 +1,7 @@
 From 35ac1b2bd14ce5778f590dbff49320ac7750f1fc Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 01:02:29 -0400
-Subject: [RFC PATCH 095/112] btrfs: raid56: stop the park timer before
+Subject: [RFC PATCH 095/114] btrfs: raid56: stop the park timer before
  destroying the raid56 workqueue
 To: linux-btrfs@vger.kernel.org
 
index 492a281b031f5defea89d1d5e753b93d30dcfe20..897fe2cd1d56e89e89bac411ffb223e8b9111e26 100644 (file)
@@ -1,7 +1,7 @@
 From 3bdfa7627870621a7dff695e25079fb4d77f86ca Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 01:02:46 -0400
-Subject: [RFC PATCH 096/112] btrfs: stripe_alloc: order the filesystem error
+Subject: [RFC PATCH 096/114] btrfs: stripe_alloc: order the filesystem error
  before waking stripe drain waiters
 To: linux-btrfs@vger.kernel.org
 
index 9cca06f99622a7383d03e296c71726527d320cb5..6b6181569445f0e0d29392b01bf57a582d2cab67 100644 (file)
@@ -1,7 +1,7 @@
 From 7ff9ffb31eedb49f8c241d91098520668eccd568 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 01:03:09 -0400
-Subject: [RFC PATCH 097/112] btrfs: raid56: set a padded rbio's data bitmap
+Subject: [RFC PATCH 097/114] btrfs: raid56: set a padded rbio's data bitmap
  under bio_list_lock
 To: linux-btrfs@vger.kernel.org
 
index a382de47e840b6b02ed324f0bbef94f9b222bfc6..d3aeee80e64f0f185b09570bb84f2a83b7affca5 100644 (file)
@@ -1,7 +1,7 @@
 From 135c4cb527ac0bc0111b37dba64144b2cb73338a Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 01:05:05 -0400
-Subject: [RFC PATCH 098/112] btrfs: stripe_alloc: forget the failed-claim
+Subject: [RFC PATCH 098/114] btrfs: stripe_alloc: forget the failed-claim
  verdict when a cluster returns its space
 To: linux-btrfs@vger.kernel.org
 
index 45d06f804aaae8bdc0a76255c8566a9b9ca570a8..52d102ba89b910e575b6e678fc5b6b74e3502269 100644 (file)
@@ -1,7 +1,7 @@
 From 298f642fc8d19cf79aa54bc8be36dfd0b9eafa43 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 01:05:32 -0400
-Subject: [RFC PATCH 099/112] btrfs: stripe_alloc: do not let a remount revert
+Subject: [RFC PATCH 099/114] btrfs: stripe_alloc: do not let a remount revert
  the stripe_alloc property
 To: linux-btrfs@vger.kernel.org
 
index 72eff60bac301544f57d010adc88b4e6dd764242..31c87586fece4421a626ecb10a151f1a2abd76fd 100644 (file)
@@ -1,7 +1,7 @@
 From 778a1ddcdd8631bd4727f83e0cb42c05db605b62 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 01:06:05 -0400
-Subject: [RFC PATCH 100/112] btrfs: stripe_alloc: do not block a NOWAIT write
+Subject: [RFC PATCH 100/114] btrfs: stripe_alloc: do not block a NOWAIT write
  in the nocow stripe check
 To: linux-btrfs@vger.kernel.org
 
index fa377e5949defec9f733b21b40748c7439dacf64..6efc2eca2dd2d432bb1a74fe0166e7d582e1db38 100644 (file)
@@ -1,7 +1,7 @@
 From 5b09cd9ba9aeeafe54ca703dbc86bf8d7631ac1c Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 01:06:45 -0400
-Subject: [RFC PATCH 101/112] btrfs: stripe_alloc: keep the head of a claimed
+Subject: [RFC PATCH 101/114] btrfs: stripe_alloc: keep the head of a claimed
  free space entry under the lock
 To: linux-btrfs@vger.kernel.org
 
index 4ec8312b09ba96489c30c3589080b23b7b4d1da6..28d8ea719529d98e7ca2d9c77fd6ca18e62fcc04 100644 (file)
@@ -1,7 +1,7 @@
 From c85af373e485e1318e807ed24e2637e2eeaff7a9 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 01:06:59 -0400
-Subject: [RFC PATCH 102/112] btrfs: stripe_meta: check the block group lookup
+Subject: [RFC PATCH 102/114] btrfs: stripe_meta: check the block group lookup
  when freeing an unwritten tree block
 To: linux-btrfs@vger.kernel.org
 
index b571ef3f057948418bcb2282a4ab149d033d8271..02b3cbdef3dd2e522a25a184a0cda9d6b9c68b39 100644 (file)
@@ -1,7 +1,7 @@
 From 5571f78278ce68eb576cb4699b3163c73ee669aa Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 01:07:22 -0400
-Subject: [RFC PATCH 103/112] btrfs: stripe_alloc: remove the unused
+Subject: [RFC PATCH 103/114] btrfs: stripe_alloc: remove the unused
  stripe_rmw_opt field
 To: linux-btrfs@vger.kernel.org
 
index 390a294ec4ee12d97e8bc459953838fe90c66a53..f7f0cdd103099209deaefe3290f50016828e0c6b 100644 (file)
@@ -1,7 +1,7 @@
 From b10ebcd041372e1dcc2caf3f83d25d6507b9af56 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 01:16:09 -0400
-Subject: [RFC PATCH 104/112] btrfs: stripe_alloc: correct and trim the block
+Subject: [RFC PATCH 104/114] btrfs: stripe_alloc: correct and trim the block
  group comments
 To: linux-btrfs@vger.kernel.org
 
index 092d18c55670fecd18e17e8e50e21d5a50e563f5..1032ad6d13749680c52fe312f86d4eb87474afdd 100644 (file)
@@ -1,7 +1,7 @@
 From 90f0201fde06e9443c9a760e358581ed631740a5 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 01:17:49 -0400
-Subject: [RFC PATCH 105/112] btrfs: stripe_alloc: correct and trim the
+Subject: [RFC PATCH 105/114] btrfs: stripe_alloc: correct and trim the
  comments outside the block group code
 To: linux-btrfs@vger.kernel.org
 
index 7caed3f968552dd02768fc79bb695ae04ef6d6f1..f60be33b7c9f6cf6f4739131a0d594c2a07f9af3 100644 (file)
@@ -1,7 +1,7 @@
 From bbc77261bfccfb82874222569e9b7f647e08ce5f Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 10:20:03 -0400
-Subject: [RFC PATCH 106/112] btrfs: stripe_meta: keep waiting for metadata
+Subject: [RFC PATCH 106/114] btrfs: stripe_meta: keep waiting for metadata
  runs that do not drain at commit
 To: linux-btrfs@vger.kernel.org
 
index 092c02d3d4e51c2d91f1f92f6d13b33678c687e3..6d94e03dc2ed9c190b4eae19291fc7653be5eb63 100644 (file)
@@ -1,7 +1,7 @@
 From 1fcae9e2ff2dfbc8b6f2514e9eb6b2fd4f8ef18f Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 11:19:42 -0400
-Subject: [RFC PATCH 107/112] btrfs: stripe_alloc: remove pad refusal reasons
+Subject: [RFC PATCH 107/114] btrfs: stripe_alloc: remove pad refusal reasons
  that no longer exist
 To: linux-btrfs@vger.kernel.org
 
index 17539fbb5a47856d37924866c7513af5388b51e6..9697bb6ca696df3ed9bf4826b48673206d2c2340 100644 (file)
@@ -1,7 +1,7 @@
 From ddcc84d0004077983aec60e5e6cd948b25f58caf Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Fri, 9 Oct 2026 19:13:11 -0400
-Subject: [RFC PATCH 108/112] btrfs: stripe_alloc: count and log ordered
+Subject: [RFC PATCH 108/114] btrfs: stripe_alloc: count and log ordered
  extents that end with sectors unwritten
 To: linux-btrfs@vger.kernel.org
 
index 857a575325e1ded3b0e81045a0125fb0bcb2529a..4c304e98e550a3a72ab15acd0b2d96edd6f708a1 100644 (file)
@@ -1,7 +1,7 @@
 From 2c86e702355125e0779d667a08699cf34da557e9 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 10 Oct 2026 00:19:18 -0400
-Subject: [RFC PATCH 109/112] btrfs: stripe_alloc: skip RAID5/6 groups that are
+Subject: [RFC PATCH 109/114] btrfs: stripe_alloc: skip RAID5/6 groups that are
  mapped as RAID1/RAID1C3
 To: linux-btrfs@vger.kernel.org
 
index a314b5679ed7056d08e02be62dc2a25c2c2fdf6a..1dd17c105978b55ebefa89c7622163ada8c344ae 100644 (file)
@@ -1,7 +1,7 @@
 From 3a14de399288d7d5aea4e241184b0be04e773a58 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sat, 10 Oct 2026 14:29:22 -0400
-Subject: [RFC PATCH 110/112] btrfs: stripe_alloc: count single-data-stripe
+Subject: [RFC PATCH 110/114] btrfs: stripe_alloc: count single-data-stripe
  groups' free space in write admission
 To: linux-btrfs@vger.kernel.org
 
index f50e2b6b5844521895e2ec8ede99557ffcb152fb..ce1d21ba880eb8f468e498224bf04eb8c8f5f5f6 100644 (file)
@@ -1,7 +1,7 @@
 From a1ba776d84f34898257042e6cc7e8426938c3453 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Sun, 11 Oct 2026 02:50:36 -0400
-Subject: [RFC PATCH 111/112] btrfs: stripe_alloc: account claimable stripes
+Subject: [RFC PATCH 111/114] btrfs: stripe_alloc: account claimable stripes
  while a trim has them out
 To: linux-btrfs@vger.kernel.org
 
index 2126bb80e8912644a23130e6cc72f82fc2919ddc..93d1464890d064a61653177f103bb4f1bb30e220 100644 (file)
@@ -1,7 +1,7 @@
 From 52074eb4d12ef3850757554d6533f24cd258c362 Mon Sep 17 00:00:00 2001
 From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
 Date: Tue, 20 Oct 2026 00:14:58 -0400
-Subject: [RFC PATCH 112/112] btrfs: stripe_alloc: do not miss bitmap free
+Subject: [RFC PATCH 112/114] btrfs: stripe_alloc: do not miss bitmap free
  space when debiting a trim
 To: linux-btrfs@vger.kernel.org
 
diff --git a/topics/stripe-alloc/0113-btrfs-log-block-group-reclaim-at-debug-level.patch b/topics/stripe-alloc/0113-btrfs-log-block-group-reclaim-at-debug-level.patch
new file mode 100644 (file)
index 0000000..e2ffc09
--- /dev/null
@@ -0,0 +1,83 @@
+From 0900c2bcd6b290ba88d4bdea5d4f68477ad74aee Mon Sep 17 00:00:00 2001
+From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
+Date: Tue, 20 Oct 2026 13:04:19 -0400
+Subject: [RFC PATCH 113/114] btrfs: log block group reclaim at debug level
+To: linux-btrfs@vger.kernel.org
+
+The reclaim worker relocates and compacts block groups without a word in
+the kernel log: btrfs_relocate_chunk() is called with verbose=false, and
+the "reclaiming chunk" info message was removed as log spam in a507904090d0
+("btrfs: remove redundant auto reclaim log message").  Only the
+btrfs_reclaim_block_group tracepoint and the reclaim_count/reclaim_errors
+counters in sysfs remain, so a kernel log taken from a test or a user
+report cannot show which groups reclaim moved, or when.  Under stripe_alloc
+this hid automatic relocation and compaction from tests that read the log:
+stripe-reclaim-test counted relocation lines and always saw none, and an
+octopus replace stalled behind a reclaim that left no trace.
+
+Log the start of each reclaim (relocate or compact, with the group's
+flags, length, used, reserved and trapped bytes) and its successful end
+with btrfs_debug(), so they are off by default and can be enabled with
+dynamic debug:
+
+  echo 'file fs/btrfs/block-group.c format "reclaim: " +p' \
+       > /sys/kernel/debug/dynamic_debug/control
+
+Errors are still logged with btrfs_err() as before.
+
+Assisted-by: Claude:claude-opus-5-5
+---
+ fs/btrfs/block-group.c | 16 +++++++++++++---
+ 1 file changed, 13 insertions(+), 3 deletions(-)
+
+diff --git a/fs/btrfs/block-group.c b/fs/btrfs/block-group.c
+index 65340f18ae7a4..dde544f6b3bdd 100644
+--- a/fs/btrfs/block-group.c
++++ b/fs/btrfs/block-group.c
+@@ -5400,8 +5400,10 @@ static int btrfs_reclaim_block_group(struct btrfs_block_group *bg, int *reclaime
+       u64 used;
+       u64 reserved;
+       u64 old_total;
++      u64 trapped;
+       int ret = 0;
+       bool compact = false;
++      bool compacted = false;
+ 
+       /*
+        * A stripe_alloc / stripe_meta group's live extents can only move into
+@@ -5548,12 +5550,17 @@ static int btrfs_reclaim_block_group(struct btrfs_block_group *bg, int *reclaime
+       spin_lock(&bg->lock);
+       used = bg->used;
+       reserved = bg->reserved;
++      /* Trapped as the reclaim trigger counts it. */
++      trapped = bg->stripe_unusable -
++                min(bg->stripe_unusable, bg->stripe_stranded);
+       spin_unlock(&bg->lock);
+ 
+       trace_btrfs_reclaim_block_group(bg);
++      btrfs_debug(fs_info,
++"reclaim: %s block group %llu flags 0x%llx length %llu used %llu reserved %llu trapped %llu",
++                  compact ? "compacting" : "relocating", bg->start, bg->flags,
++                  bg->length, used, reserved, trapped);
+       if (compact) {
+-              bool compacted;
+-
+               ret = btrfs_compact_chunk(fs_info, bg->start, &compacted);
+               /*
+                * Compacted, the group stays: drop our read-only hold.  It
+@@ -5590,8 +5597,11 @@ static int btrfs_reclaim_block_group(struct btrfs_block_group *bg, int *reclaime
+       if (space_info->total_bytes < old_total)
+               btrfs_set_periodic_reclaim_ready(space_info, true);
+       spin_unlock(&space_info->lock);
+-      if (!ret)
++      if (!ret) {
+               (*reclaimed)++;
++              btrfs_debug(fs_info, "reclaim: %s block group %llu",
++                          compacted ? "compacted" : "relocated", bg->start);
++      }
+ 
+       return ret;
+ }
+-- 
+2.47.3
+
diff --git a/topics/stripe-alloc/0114-btrfs-stripe_alloc-add-stripe_reclaim_now-to-reclaim.patch b/topics/stripe-alloc/0114-btrfs-stripe_alloc-add-stripe_reclaim_now-to-reclaim.patch
new file mode 100644 (file)
index 0000000..93b5c5f
--- /dev/null
@@ -0,0 +1,468 @@
+From bcadbfc8ac020ccc7fddf79e5530322e3fb98747 Mon Sep 17 00:00:00 2001
+From: Zygo Blaxell <ce3g8jdj@umail.furryterror.org>
+Date: Tue, 20 Oct 2026 14:41:37 -0400
+Subject: [RFC PATCH 114/114] btrfs: stripe_alloc: add stripe_reclaim_now to
+ reclaim stripes on demand
+To: linux-btrfs@vger.kernel.org
+
+Background reclaim of stripe_alloc / stripe_meta raid56 groups runs when a
+commit-time rescan, or the cleaner's tick at most every five minutes per
+group, finds a group past bg_reclaim_threshold.  Nothing lets an operator
+say "reclaim now": during an idle period, before a large write, or for one
+group seen trapped.  The only tool is balance, which relocates whole groups
+whatever their state and cannot compact.
+
+Add /sys/fs/btrfs/<uuid>/stripe_reclaim_now (write-only, root):
+
+  echo all > stripe_reclaim_now       (or "1")
+       Queue every stripe_alloc / stripe_meta raid56 group that the
+       reclaim predicate picks: relocate below the threshold once enough
+       of its free space is trapped, compact above it once stripe_compact
+       percent of its length is trapped.  The five-minute hysteresis is
+       ignored.
+
+  echo <start> > stripe_reclaim_now
+       Reclaim the group at that logical start (decimal or 0x hex, as
+       `btrfs inspect-internal dump-tree -t chunk` and the "reclaim: "
+       debug lines print it) whatever its trapped space:
+       compact it if it is above the threshold and has trapped stripes,
+       relocate it otherwise.
+
+The threshold is the space_info's bg_reclaim_threshold, or 75
+(BTRFS_DEFAULT_RECLAIM_THRESH) where that is 0, the non-zoned default,
+since the request is explicit.  Both forms keep the room check: the other
+groups' claimable stripes, plus the one chunk the worker allocates when
+those fall short, must take what moves.  The write returns once the groups
+are queued; it does not wait for the reclaim.  The worker re-checks its
+thresholds and would drop a group it was asked to reclaim, so a group
+queued by this knob carries the kind of reclaim to do
+(stripe_reclaim_forced), which the worker honours once and clears.
+
+Errors: -ENOENT when no group starts there; -EINVAL for anything but a
+stripe_alloc / stripe_meta raid56 group (balance's vrange filter relocates
+the others); -EBUSY when the group is read-only (a balance or scrub has
+it); -EAGAIN when it is already on a list (queued, unused or new);
+-ENOSPC when there is no room; -EROFS on a read-only or errored
+filesystem.  The worker takes the balance exclusive operation and gives the
+list back when another holds it, so a request made while a balance,
+replace, resize or device add/remove runs would wait unseen: it fails at
+once with -EAGAIN and nothing is queued; retry when the operation is done.
+The reclaim worker's own hold (a balance with no balance control) is not
+refused, as the worker picks up the new entries.
+
+Expected use: an idle-time job (cron) writes "all"; an operator writes the
+start of one group taken from the "reclaim: " debug lines or from the
+chunk tree.  The queued groups are logged at debug level with the same
+"reclaim: " prefix.
+
+There is no in-tree btrfs sysfs documentation; the btrfs-progs sysfs
+chapter should list the file.
+
+Tested with stripe-reclaim-now-test.sh (raid56-wh-harness): with
+background reclaim off nothing moves; one group is relocated alone, and a
+group above the threshold with trapped stripes is compacted; "all"
+reclaims and trapped space falls; no such group, not a number, a raid1
+metadata group and a read-only mount fail with the codes above, and a
+paused balance and a running replace fail with -EAGAIN; data verifies and
+btrfs check is clean.
+
+Assisted-by: Claude:claude-opus-5-5
+---
+ fs/btrfs/block-group.c      | 166 +++++++++++++++++++++++++++++++++++-
+ fs/btrfs/block-group.h      |   7 ++
+ fs/btrfs/free-space-cache.c |  53 +++++++++---
+ fs/btrfs/free-space-cache.h |   9 ++
+ fs/btrfs/sysfs.c            |  29 +++++++
+ 5 files changed, 249 insertions(+), 15 deletions(-)
+
+diff --git a/fs/btrfs/block-group.c b/fs/btrfs/block-group.c
+index dde544f6b3bdd..da9c005069b59 100644
+--- a/fs/btrfs/block-group.c
++++ b/fs/btrfs/block-group.c
+@@ -5402,6 +5402,7 @@ static int btrfs_reclaim_block_group(struct btrfs_block_group *bg, int *reclaime
+       u64 old_total;
+       u64 trapped;
+       int ret = 0;
++      u8 forced = READ_ONCE(bg->stripe_reclaim_forced);
+       bool compact = false;
+       bool compacted = false;
+ 
+@@ -5418,7 +5419,8 @@ static int btrfs_reclaim_block_group(struct btrfs_block_group *bg, int *reclaime
+               u64 need = READ_ONCE(bg->used);
+ 
+               /* Compaction moves at most half of it. */
+-              if (btrfs_stripe_bg_wants_compaction(bg))
++              if (forced ? forced == STRIPE_RECLAIM_COMPACT :
++                           btrfs_stripe_bg_wants_compaction(bg))
+                       need /= 2;
+               elsewhere -= min(elsewhere, READ_ONCE(bg->stripe_claimable));
+               if (elsewhere < need) {
+@@ -5440,6 +5442,9 @@ static int btrfs_reclaim_block_group(struct btrfs_block_group *bg, int *reclaime
+ 
+       spin_lock(&space_info->lock);
+       spin_lock(&bg->lock);
++      /* A forced reclaim is done once, or dropped with the group. */
++      forced = bg->stripe_reclaim_forced;
++      bg->stripe_reclaim_forced = STRIPE_RECLAIM_NONE;
+       if (bg->ro ||
+           ((bg->reserved || bg->pinned) &&
+            !btrfs_is_stripe_alloc_bg(bg) &&
+@@ -5492,7 +5497,10 @@ static int btrfs_reclaim_block_group(struct btrfs_block_group *bg, int *reclaime
+        * check, which is more meaningful when adding to the list in
+        * the first place.
+        */
+-      if (!should_reclaim_block_group(bg, bg->length)) {
++      if (forced) {
++              /* stripe_reclaim_now chose already; the thresholds may say no. */
++              compact = (forced == STRIPE_RECLAIM_COMPACT);
++      } else if (!should_reclaim_block_group(bg, bg->length)) {
+               /*
+                * Too full to relocate whole.  A stripe_alloc / stripe_meta
+                * group whose free space is trapped in partially used stripes
+@@ -5765,6 +5773,160 @@ bool btrfs_mark_bg_to_reclaim(struct btrfs_block_group *bg)
+       return true;
+ }
+ 
++/*
++ * Room for a forced reclaim beyond the other groups' claimable stripes: the
++ * one chunk the reclaim worker allocates when they fall short (see
++ * btrfs_reclaim_block_group()), estimated as the data share of the
++ * unallocated device space at @bg's width, capped at @bg's length.
++ */
++static u64 stripe_reclaim_chunk_room(struct btrfs_block_group *bg)
++{
++      struct btrfs_fs_info *fs_info = bg->fs_info;
++      struct btrfs_chunk_map *map;
++      u64 unalloc = atomic64_read(&fs_info->free_chunk_space);
++      u64 room;
++
++      map = btrfs_get_chunk_map(fs_info, bg->start, 1);
++      if (IS_ERR(map))
++              return 0;
++      room = div_u64(unalloc * nr_data_stripes(map), map->num_stripes);
++      btrfs_free_chunk_map(map);
++      return min(room, bg->length);
++}
++
++/*
++ * Queue @bg for the reclaim worker with the reclaim it is to do.  Returns
++ * false when the group is already on a list (queued, unused or new).
++ */
++static bool stripe_reclaim_now_queue(struct btrfs_block_group *bg,
++                                   enum stripe_reclaim_kind kind)
++{
++      bool queued;
++
++      spin_lock(&bg->lock);
++      bg->stripe_reclaim_forced = kind;
++      queued = btrfs_mark_bg_to_reclaim(bg);
++      if (queued)
++              bg->stripe_reclaim_jiffies = jiffies ?: 1;
++      else
++              bg->stripe_reclaim_forced = STRIPE_RECLAIM_NONE;
++      spin_unlock(&bg->lock);
++      if (queued)
++              btrfs_debug(bg->fs_info,
++                          "reclaim: queued block group %llu to %s (stripe_reclaim_now)",
++                          bg->start, kind == STRIPE_RECLAIM_COMPACT ?
++                          "compact" : "relocate");
++      return queued;
++}
++
++/*
++ * /sys/fs/btrfs/<uuid>/stripe_reclaim_now: reclaim stripe_alloc / stripe_meta
++ * raid56 block groups now, e.g. from an idle-time job, rather than waiting
++ * for the commit-time rescan and its five-minute hysteresis.  The threshold
++ * is the space_info's bg_reclaim_threshold, or BTRFS_DEFAULT_RECLAIM_THRESH
++ * where that is 0 (reclaim off), since the request is explicit.
++ *
++ * @all: queue every such group the reclaim predicate picks at that
++ * threshold (relocate below it, compact above it once stripe_compact percent
++ * is trapped), ignoring the hysteresis.
++ *
++ * Otherwise @start names one group (its logical start): it is reclaimed
++ * whatever the trapped minimums say, compacted if it is above the threshold
++ * and has trapped stripes, relocated otherwise.  -ENOENT: no group starts
++ * there; -EINVAL: not a stripe_alloc / stripe_meta raid56 group (relocate
++ * any other group with balance's vrange filter); -EBUSY: the group is
++ * read-only (balance or scrub hold it); -EAGAIN: it is already on a list
++ * (queued, unused or new); -ENOSPC: the other groups' claimable stripes plus
++ * one new chunk cannot take what would move.
++ *
++ * Both return once the groups are queued, without waiting for the reclaim.
++ * The worker takes the balance exclusive operation and gives the list back
++ * when another operation holds it, so a request made while a balance,
++ * replace, resize or device add/remove runs fails at once with -EAGAIN
++ * rather than wait unseen; nothing is queued.  The reclaim worker's own hold
++ * (a balance with no balance control) is not refused: it picks up the new
++ * entries.
++ */
++int btrfs_stripe_reclaim_now(struct btrfs_fs_info *fs_info, bool all, u64 start)
++{
++      struct btrfs_space_info *sinfo;
++      struct btrfs_block_group *bg;
++      enum btrfs_exclusive_operation op;
++      enum stripe_reclaim_kind kind;
++      int queued = 0;
++      int ret = 0;
++
++      if (sb_rdonly(fs_info->sb) || BTRFS_FS_ERROR(fs_info))
++              return -EROFS;
++      spin_lock(&fs_info->super_lock);
++      op = fs_info->exclusive_operation;
++      spin_unlock(&fs_info->super_lock);
++      if (op != BTRFS_EXCLOP_NONE &&
++          (op != BTRFS_EXCLOP_BALANCE || READ_ONCE(fs_info->balance_ctl)))
++              return -EAGAIN;
++
++      if (!all) {
++              bg = btrfs_lookup_block_group(fs_info, start);
++              if (!bg)
++                      return -ENOENT;
++              if (bg->start != start) {
++                      ret = -ENOENT;
++              } else if (!btrfs_is_stripe_alloc_bg(bg) &&
++                         !btrfs_is_stripe_meta_bg(bg)) {
++                      ret = -EINVAL;
++              } else if (READ_ONCE(bg->ro)) {
++                      ret = -EBUSY;
++              } else {
++                      int thresh = READ_ONCE(bg->space_info->bg_reclaim_threshold);
++
++                      kind = btrfs_stripe_bg_reclaim_now_kind(bg,
++                                      thresh > 0 ? thresh : BTRFS_DEFAULT_RECLAIM_THRESH,
++                                      true, stripe_reclaim_chunk_room(bg));
++                      if (kind == STRIPE_RECLAIM_NONE)
++                              ret = READ_ONCE(bg->ro) ? -EBUSY : -ENOSPC;
++                      else if (stripe_reclaim_now_queue(bg, kind))
++                              queued = 1;
++                      else
++                              ret = -EAGAIN;
++              }
++              btrfs_put_block_group(bg);
++              if (ret)
++                      return ret;
++              goto kick;
++      }
++
++      list_for_each_entry(sinfo, &fs_info->space_info, list) {
++              int thresh = READ_ONCE(sinfo->bg_reclaim_threshold);
++              int raid;
++
++              if (thresh <= 0)
++                      thresh = BTRFS_DEFAULT_RECLAIM_THRESH;
++              down_read(&sinfo->groups_sem);
++              for (raid = 0; raid < BTRFS_NR_RAID_TYPES; raid++) {
++                      if (!(btrfs_raid_array[raid].bg_flag &
++                            BTRFS_BLOCK_GROUP_RAID56_MASK))
++                              continue;
++                      list_for_each_entry(bg, &sinfo->block_groups[raid], list) {
++                              if (!btrfs_is_stripe_alloc_bg(bg) &&
++                                  !btrfs_is_stripe_meta_bg(bg))
++                                      continue;
++                              kind = btrfs_stripe_bg_reclaim_now_kind(bg, thresh,
++                                              false, stripe_reclaim_chunk_room(bg));
++                              if (kind != STRIPE_RECLAIM_NONE &&
++                                  stripe_reclaim_now_queue(bg, kind))
++                                      queued++;
++                      }
++              }
++              up_read(&sinfo->groups_sem);
++      }
++      btrfs_debug(fs_info, "reclaim: stripe_reclaim_now queued %d block groups",
++                  queued);
++kick:
++      if (queued)
++              queue_work(system_dfl_wq, &fs_info->reclaim_bgs_work);
++      return 0;
++}
++
+ static int read_bg_from_eb(struct btrfs_fs_info *fs_info, const struct btrfs_key *key,
+                          const struct btrfs_path *path)
+ {
+diff --git a/fs/btrfs/block-group.h b/fs/btrfs/block-group.h
+index 202d9f73678de..bc26b9e875506 100644
+--- a/fs/btrfs/block-group.h
++++ b/fs/btrfs/block-group.h
+@@ -332,6 +332,12 @@ struct btrfs_block_group {
+       u64 stripe_stranded;
+       /* jiffies when the reclaim trigger last queued this group (stripe_alloc) */
+       unsigned long stripe_reclaim_jiffies;
++      /*
++       * Reclaim forced by stripe_reclaim_now (enum stripe_reclaim_kind):
++       * the reclaim worker does this instead of re-checking its thresholds,
++       * once, and clears it.  Protected by ->lock.
++       */
++      u8 stripe_reclaim_forced;
+       /*
+        * Directly measured claimable supply: bytes of fully free, aligned
+        * whole stripes in the free space cache -- exactly what
+@@ -649,6 +655,7 @@ void btrfs_reclaim_block_groups(struct btrfs_fs_info *fs_info, unsigned int limi
+ void btrfs_reclaim_bgs_work(struct work_struct *work);
+ void btrfs_reclaim_bgs(struct btrfs_fs_info *fs_info);
+ bool btrfs_mark_bg_to_reclaim(struct btrfs_block_group *bg);
++int btrfs_stripe_reclaim_now(struct btrfs_fs_info *fs_info, bool all, u64 start);
+ int btrfs_read_block_groups(struct btrfs_fs_info *info);
+ struct btrfs_block_group *btrfs_make_block_group(struct btrfs_trans_handle *trans,
+                                                struct btrfs_space_info *space_info,
+diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c
+index 8303110638dcf..f3a8381e05de5 100644
+--- a/fs/btrfs/free-space-cache.c
++++ b/fs/btrfs/free-space-cache.c
+@@ -2413,19 +2413,15 @@ void btrfs_block_group_disarm_stripe_unusable(struct btrfs_block_group *bg)
+  * and queueing a group with nowhere to move it only costs writers read-only
+  * transitions.  Counters are read unlocked; the worker re-checks.
+  */
+-enum stripe_reclaim_kind {
+-      STRIPE_RECLAIM_NONE,
+-      STRIPE_RECLAIM_RELOCATE,
+-      STRIPE_RECLAIM_COMPACT,
+-};
+-
+-static enum stripe_reclaim_kind stripe_bg_reclaim_kind(struct btrfs_block_group *bg,
+-                                                     bool check_room)
++static enum stripe_reclaim_kind __stripe_bg_reclaim_kind(struct btrfs_block_group *bg,
++                                                       int thresh, bool force,
++                                                       bool check_room,
++                                                       u64 extra_room)
+ {
+       struct btrfs_space_info *sinfo = bg->space_info;
+-      const int thresh = READ_ONCE(sinfo->bg_reclaim_threshold);
++      const bool ready = READ_ONCE(bg->stripe_unusable_ready);
+       const u64 used = READ_ONCE(bg->used);
+-      const u64 unusable = READ_ONCE(bg->stripe_unusable);
++      const u64 unusable = ready ? READ_ONCE(bg->stripe_unusable) : 0;
+       /*
+        * Stripes stranded behind live runs are trapped for admission but not
+        * for reclaim: they come back by themselves when the run is freed, and
+@@ -2437,9 +2433,19 @@ static enum stripe_reclaim_kind stripe_bg_reclaim_kind(struct btrfs_block_group
+       u64 elsewhere;
+       u64 promised;
+ 
+-      if (thresh <= 0 || bg->ro || !READ_ONCE(bg->stripe_unusable_ready))
++      if (thresh <= 0 || bg->ro || (!ready && !force))
+               return STRIPE_RECLAIM_NONE;
+-      if (used >= mult_perc(bg->length, thresh)) {
++      if (force) {
++              /*
++               * Forced (stripe_reclaim_now naming this group): no trapped
++               * minimum.  Compact a group too full to move whole if it has
++               * any trapped stripe, otherwise relocate it.
++               */
++              if (used >= mult_perc(bg->length, thresh) && trapped) {
++                      kind = STRIPE_RECLAIM_COMPACT;
++                      need = used / 2;
++              }
++      } else if (used >= mult_perc(bg->length, thresh)) {
+               /*
+                * Too full to move whole: compact once trapped space reaches
+                * stripe_compact percent of the group's length.  (A share of
+@@ -2463,7 +2469,15 @@ static enum stripe_reclaim_kind stripe_bg_reclaim_kind(struct btrfs_block_group
+                  READ_ONCE(sinfo->bytes_stripe_margin);
+       elsewhere -= min(elsewhere, READ_ONCE(bg->stripe_claimable));
+       elsewhere -= min(elsewhere, promised);
+-      return elsewhere >= need ? kind : STRIPE_RECLAIM_NONE;
++      return elsewhere + extra_room >= need ? kind : STRIPE_RECLAIM_NONE;
++}
++
++static enum stripe_reclaim_kind stripe_bg_reclaim_kind(struct btrfs_block_group *bg,
++                                                     bool check_room)
++{
++      return __stripe_bg_reclaim_kind(bg,
++                      READ_ONCE(bg->space_info->bg_reclaim_threshold),
++                      false, check_room, 0);
+ }
+ 
+ bool btrfs_stripe_bg_wants_reclaim(struct btrfs_block_group *bg)
+@@ -2471,6 +2485,19 @@ bool btrfs_stripe_bg_wants_reclaim(struct btrfs_block_group *bg)
+       return stripe_bg_reclaim_kind(bg, true) != STRIPE_RECLAIM_NONE;
+ }
+ 
++/*
++ * For stripe_reclaim_now: the reclaim @bg gets at threshold @thresh, room
++ * checked with @extra_room bytes (the chunk the worker may allocate) added to
++ * the other groups' claimable supply.  @force drops the trapped minimums: see
++ * btrfs_stripe_reclaim_now().
++ */
++enum stripe_reclaim_kind btrfs_stripe_bg_reclaim_now_kind(struct btrfs_block_group *bg,
++                                                        int thresh, bool force,
++                                                        u64 extra_room)
++{
++      return __stripe_bg_reclaim_kind(bg, thresh, force, true, extra_room);
++}
++
+ /*
+  * For the reclaim worker, about a group it took: compact it rather than
+  * relocate it whole.  Room is not re-checked; the worker makes room first,
+diff --git a/fs/btrfs/free-space-cache.h b/fs/btrfs/free-space-cache.h
+index ceb933d51a169..94d60f9efece3 100644
+--- a/fs/btrfs/free-space-cache.h
++++ b/fs/btrfs/free-space-cache.h
+@@ -119,8 +119,17 @@ void btrfs_block_group_init_stripe_unusable(struct btrfs_block_group *block_grou
+ void btrfs_block_group_disarm_stripe_unusable(struct btrfs_block_group *block_group);
+ void btrfs_stripe_unmanaged_sync(struct btrfs_block_group *block_group);
+ void btrfs_block_group_rescan_stripe_unusable(struct btrfs_block_group *block_group);
++enum stripe_reclaim_kind {
++      STRIPE_RECLAIM_NONE,
++      STRIPE_RECLAIM_RELOCATE,
++      STRIPE_RECLAIM_COMPACT,
++};
++
+ bool btrfs_stripe_bg_wants_reclaim(struct btrfs_block_group *bg);
+ bool btrfs_stripe_bg_wants_compaction(struct btrfs_block_group *bg);
++enum stripe_reclaim_kind btrfs_stripe_bg_reclaim_now_kind(struct btrfs_block_group *bg,
++                                                        int thresh, bool force,
++                                                        u64 extra_room);
+ s64 btrfs_stripe_partial_map(struct btrfs_block_group *bg, unsigned long *map,
+                            u64 nstripes);
+ void btrfs_dump_free_space(struct btrfs_block_group *block_group,
+diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c
+index 9928527c7394c..32d751fe87161 100644
+--- a/fs/btrfs/sysfs.c
++++ b/fs/btrfs/sysfs.c
+@@ -1464,6 +1464,34 @@ static ssize_t btrfs_stripe_compact_store(struct kobject *kobj,
+ BTRFS_ATTR_RW(, stripe_compact, btrfs_stripe_compact_show,
+             btrfs_stripe_compact_store);
+ 
++/*
++ * Reclaim stripe_alloc / stripe_meta raid56 block groups now: "all" (or "1")
++ * queues every group the reclaim predicate picks, a block group's logical
++ * start forces that group.  See btrfs_stripe_reclaim_now().
++ */
++static ssize_t btrfs_stripe_reclaim_now_store(struct kobject *kobj,
++                                            struct kobj_attribute *a,
++                                            const char *buf, size_t len)
++{
++      struct btrfs_fs_info *fs_info = to_fs_info(kobj);
++      u64 start = 0;
++      bool all;
++      int ret;
++
++      if (!capable(CAP_SYS_ADMIN))
++              return -EPERM;
++
++      all = sysfs_streq(buf, "all") || sysfs_streq(buf, "1");
++      if (!all) {
++              ret = kstrtou64(buf, 0, &start);
++              if (ret)
++                      return ret;
++      }
++      ret = btrfs_stripe_reclaim_now(fs_info, all, start);
++      return ret ? ret : len;
++}
++BTRFS_ATTR_W(, stripe_reclaim_now, btrfs_stripe_reclaim_now_store);
++
+ 
+ 
+ static ssize_t btrfs_clone_alignment_show(struct kobject *kobj,
+@@ -1840,6 +1868,7 @@ static const struct attribute *btrfs_attrs[] = {
+       BTRFS_ATTR_PTR(, stripe_park_sync_timeout_ms),
+       BTRFS_ATTR_PTR(, stripe_park_congestion),
+       BTRFS_ATTR_PTR(, stripe_compact),
++      BTRFS_ATTR_PTR(, stripe_reclaim_now),
+       BTRFS_ATTR_PTR(, temp_fsid),
+       NULL,
+ };
+-- 
+2.47.3
+