]> git.hungrycats.org Git - linux/commit
Merge branches (11 topics incl. logical-ino-costs) into misc-next/testing
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 11 Nov 2026 04:55:23 +0000 (23:55 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 11 Nov 2026 04:55:23 +0000 (23:55 -0500)
commit6f8be7703b417ab863f5efd2a9d3e1911f319f48
treeef78d81b1c9a811472b03bfd3f463429791deb4e
parent83cd81353093be02aa7e60874c413ec340e55bce
parent46393acd1f98b9b78a4ca490c822bd4922b38216
parent9732a4fa540f1db0c048915a83d5606dd5615a0e
parentd0136e6493082d001aa33ed4174dae6062abb49a
parent464a17c7110ff10889f59c0230001ef8fde4ca92
parenta4a830eb6b96cfcf9bc52dc145cf41f4dc927b7a
parent1bfce31eb38de064ba209595df90676627d9d621
parent928af994881cc3904fc6572ec9be509e84d6acab
parentba3c140a9b37784b18760540abbdf9e6d7a392b0
parent67df719ccdefbcc38d0f9167a1e42b9318f0ef98
parent3b022e96c7a88a5ad5c389f756b75ff8d3dcafa5
parenteed1056fffd707affeac38415f2abe5f8d9f8e12
parent83d98c04f4708f23ff40246812a81a879839b181
parent28c07811477669dff1d815cb59e1e1b56f3baa68
parent895645f016b3e048f1ab45b7f7a5e056bb501e5f
parent5868a5a21ef65bde16409a528705a5f434714a8c
parentac5b3f57bce5c140a826e9e200fa7c35f04a2327
parent1da31bae03d5119d85c8c11525aaca87bcbc5100
parent6413d600b7a432ed7f6bcad78c3e2b62a9ae9422
parent7411bb010dfb9909bdd7aacf2988961dda3a47f7
parentfb0dade563cf4400faf384e6478eb40305e775e3
parent6768b11718f744cdcfc24a19817d256954a31b65
parent8b54332c3af675c544b8744e56c02a236319f7a9
parent3865255228933287e3a8da2aaa0357822864c342
parent0d75f39b65f3fa3ba0eadd5ff1dedaa2d5948c67
parent0c648f0b012b529ce47aaf8c0700051b8f492252
parente74d5a2d0a4cbe60b92734b54c2a392e79ce2b4d
Merge branches (11 topics incl. logical-ino-costs) into misc-next/testing

2026-09-21: misc-next/topics/logical-ino-costs combines the former
backref-hang, delayed-ref-fixes and logical-ino topics into one three-patch
series (reducing LOGICAL_INO costs): the add_all_parents() rewind-cycle
hang, the quadratic delayed-ref merge walk, and
BTRFS_LOGICAL_INO_ARGS_COMMIT_ROOT.  Tree unchanged by the restructure.
topics/stripe-alloc is the 2026-09-19 restructure: nine folds, the mount
option erased from history, the property patch moved to #4, plus system
chunks under stripe_meta (65 patches).

Also merges 'misc-next/topics/low-space' (topics/low-space: generic low-space behaviour improvements (reclaim errno)).

Integration of topics/low-space with topics/stripe-alloc, in block-group.c
and space-info.c (octopus only from 2026-09-29; since 2026-10-29 it lives in
topics/low-space, which is restacked on topics/stripe-alloc: "btrfs: hold
block groups free for relocation" carries it; Zygo: "they all have to be
submitted in some order as patches, not merges"):
 - a group held for relocation counts only its claimable whole stripes
   as reserve (resynced at each commit-time stripe rescan); its trapped
   space is in bytes_stripe_unusable already, and counting it twice made
   the metadata space_info read over-full on a full raid6 filesystem;
 - ordinary data writers' whole-stripe admission excludes the held
   groups' stripes; relocation still sees them.
stripe_meta's bytes_stripe_reserve is NOT reduced by the held groups: it
is an admission margin that keeps tree blocks off the reserve's emergency
fallback, and without it a metadata fill consumed the reserve before any
relocation (dhive sresmn raid5/raid5, 2026-09-29).

Also merges 'misc-next/topics/nocmtime' (topics/nocmtime: Jeff Layton's "btrfs: fix FMODE_NOCMTIME handling in btrfs", 4 patches; it replaces topics/dedupe-mtime, whose fix its patch 2 contains).

Also merges 'misc-next/topics/dm-stripfault' (topics/dm-stripfault: the stripfault dm target, a raid56 RMW test fixture; drop before upstream).

Also merges 'misc-next/topics/allocator-hints' (topics/allocator-hints: Kai
Krakow's allocator hint series, as on the 6.18 lane with the no-transaction
type store (v2b), replacing the four hint patches formerly carried on
zygo-misc-next-zb64, whose type store deadlocked against device remove).
Ported onto misc-next: btrfs_update_device() is already non-static
upstream (prototype not re-added), and BTRFS_DEV_STATE_TYPE_DIRTY is bit 8
because misc-next uses 6 and 7 (FLUSH_FAILED, ITEM_FOUND).
Also merges 'misc-next/topics/read-policies' (topics/read-policies: Kai
Krakow's read policies and per-device read stats: CONFIG_BTRFS_READ_POLICIES,
queue and queue-adaptive policies, CONFIG_BTRFS_PER_DEVICE_IO_STATS).
Ported onto misc-next: no offload_csum_mode (gone upstream), sysfs.c
includes <linux/string_choices.h> instead of <crypto/hash.h>.
Kconfig and sysfs.c conflicts with allocator-hints resolved as the union,
as on 6.18.

2026-10-07: rebased onto kdave misc-next 9f11e00e8027 ("btrfs: stop reading free space inodes from the commit root"), which kdave force-updated
onto a later 7.3-rc base.  Dropped from topics/raid56-fixes: "btrfs: raid56: do
not verify the content if there is no data checksum" (upstream 05d60d2ee801a).
Both stripe-alloc conflicts and the octopus conflict are Boris Burkov's SYSTEM
space change (e518b02aa180b): our stripe headroom folded into need_system_chunk,
our relocation-reserve bail-out unioned with the system-space one.

2026-10-10 (Zygo): dropped topics/raid6-fixes.  Upstream 49ba3a3c0d67
("btrfs: disguise single-data-RAID56 as RAID1/RAID1C3") maps 3-device RAID6
chunks as RAID1C3, so btrfs never calls lib/raid6 with three disks, and lib/raid6
now treats fewer than RAID6_MIN_DISKS (4) as unsupported.

2026-10-10: topics/stripe-alloc gains the 2026-10-09 review (26 patches):
fixes for the review findings F01-F14 and M01-M12 (run owner keyed by
subvolume, ended ordered extents marked written, unused-group cleanup with
open runs, commit-time and read-only metadata drains without timeout
escapes, stats removals), the comment cleanup, the unwritten-on-end log,
and skipping single-data-stripe RAID5/6 groups with their free space
counted in write admission.  Validated on cand/review-1009/misc-next-zb64
df9f142b8b87: KASAN sanity + directed and full r6c3.

2026-10-11: topics/stripe-alloc gains "account claimable stripes while a
trim has them out" (1 patch): fstrim and async discard took free ranges
out of the tree without touching stripe_claimable, so a rescan in the
window found the incremental count above its scan.  Validated on
cand/trimclaim2/misc-next-zb64 f412553a1ea9: KASAN directed
(incl. trim-claimable-race-test), claimable solo, corrupt-churn x3 (6.18).

2026-10-16: + misc-next/topics/replace-fixes (commit the canceled state when a device replace fails or is canceled).

2026-10-17: the raid56 scrub/replace commits move from
misc-next/topics/raid56-fixes to a new misc-next/topics/raid56-scrub-replace, in safe order:
per-row parity check (unrepaired full stripes still fail with -EIO),
copy original parity of unrepairable rows to the replace target, copy
unrepaired data sectors, copy every sector of raid56 data stripes, avoid
the replace source only for its own stripes, read no-extent sectors from
the replace source, and last the return-0 flip, so there is no bisect
window where replace silently drops P/Q.  misc-next/topics/replace-fixes gains
the dev-replace error-accounting series (uncorrectable read and target
write error counts, cancel progress, resumed-replace WARN fix) and the
ABORT_ON_UNCORRECTABLE start flag.  Tree identical to the tested
candidate refs/cand/r5fix-mn/testing.

2026-10-17 (Zygo): misc-next/topics/raid56-scrub-replace now starts with a copy of
Filipe Manana's "btrfs: scrub: fix lost error return value when scrubbing
raid56 parity stripe" (btrfs/for-next ec0795c045c3, verbatim), so the rebase
drops it once it is in the base.  Tree unchanged.

Also merges 'misc-next/topics/dev-stats' (topics/dev-stats: write dirty device stats when no transaction is running; a behaviour change reviewers may reject, kept droppable on its own).

Also merges 'misc-next/topics/resize-missing' (topics/resize-missing: allow shrinking a missing device so a smaller replacement fits; Qu Wenruo's 2019 patch, rewritten).

Merge topic read-repair-fixes (repair bio end_io for submit failures)

Also merges 'misc-next/topics/reflink-inline-fixes' (copy_inline_to_page() fixes:
zeroing offset in large folios/subpage, decompression error path).

Candidate: + wbkick v5 (stripe-alloc: whole-range writeback under stripe_alloc,
carry qgroup fold, fsleak fold, stripe_whole_bytes removal).

Also merges misc-next/topics/reclaim-fixes (topics/reclaim-fixes: generic block group
reclaim fixes split out of topics/stripe-alloc; its tip is an ancestor of
that topic, so it adds no tree change of its own).

2026-10-30 (Zygo 2026-10-29 rulings, restructure1030; tree unchanged but for the
BTRFS_DEBUG=n build fix folded into "optionally audit data
read-modify-writes against the committed extent tree"):
+ misc-next/topics/test-knobs, stacked on topics/stripe-alloc like a test
fixture: the reclaim exclusive-operation gap (from topics/reclaim-fixes)
and the rbio cache size debug knob (from topics/raid56-fixes), both
DO-NOT-UPSTREAM; the knob now carries its integration with stripe-alloc's
rbio pins and cache prune.  topics/raid56-scrub-replace is restacked on
topics/read-repair-fixes, which now precedes it here; the abort gate
interplay (parity scrub reporting and counting, rebuilt-data writes) is
in its commits instead of this merge.  deadlock-fixes: the relock fix is
folded into "never block on space reservations ...".
Commit messages fixed in stripe-alloc, raid56-scrub-replace and
allocator-hints.

2026-10-30 (Zygo-approved, knobmv1030): in topics/test-knobs' rbio cache size
knob and in this merge, the knob's 3-line btrfs_set_rbio_cache_size()
declaration in raid56.h moves from above raid56-fixes'
btrfs_raid56_uncache_range() to after btrfs_rbio_unpin_stale(), so the
export's revert of the knob from testing applies cleanly.  No other change.

2026-11-08 (Zygo, nc1108): "btrfs: free queued remap chunks when balance
bails out", an independent METADATA_REMAP fix, is split out of
topics/balance-resume into its own topic, misc-next/topics/remap-balance-leak,
standalone on the base and merged right after topics/balance-resume.
topics/balance-resume also gains "btrfs: write the remaining balance limits
back to the balance item" (Zygo 2026-11-08, bl1108).

Also merges 'misc-next/topics/replace-finish-deadlock' (topics/replace-finish-deadlock: two device replace
hangs at replace finishing, bio counter waits in the bio completion workers (read repair) and
across the data csum lookup; both since v6.3).

Also merges 'misc-next/topics/scrub-commit-pause' (topics/scrub-commit-pause: scrub and dev-replace drain their queued stripes and drop their commit-root paths before letting a transaction commit pass; with discard=sync they read extents the commit freed (zeros), spurious scrub errors and a cancelled replace; since v6.6; independent of the other topics).

The merge conflicts in fs/btrfs/scrub.c: the new scrub_pause_point()
goes in front of scrub_raid56_parity_stripe(), where
topics/raid56-scrub-replace adds scrub_raid56_copy_parity_rows(); both
are kept, the copy helper first.
27 files changed:
fs/btrfs/Kconfig
fs/btrfs/bio.c
fs/btrfs/block-group.c
fs/btrfs/block-group.h
fs/btrfs/btrfs_inode.h
fs/btrfs/dev-replace.c
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/file.c
fs/btrfs/fs.h
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/messages.c
fs/btrfs/props.c
fs/btrfs/props.h
fs/btrfs/raid56.c
fs/btrfs/raid56.h
fs/btrfs/reflink.c
fs/btrfs/relocation.c
fs/btrfs/scrub.c
fs/btrfs/space-info.c
fs/btrfs/super.c
fs/btrfs/sysfs.c
fs/btrfs/transaction.c
fs/btrfs/transaction.h
fs/btrfs/volumes.c
fs/btrfs/volumes.h