xfs: dedupe realtime rmap btree code
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | xfs: export several rmap btree key/record opsfs/ fs/ | +34 | 0 replies | |
| 2/2 | xfs: use the shared rmap btree ops for the rt rmap btreefs/ | +17 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Darrick J. Wong | Christoph Hellwig | Carlos Maiolino |
|---|---|---|---|
| Series | R-b | R-b | R-b |
| 1/2 | |||
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 0/2] xfs: dedupe realtime rmap btree code
xfs_rmap_btree.c and xfs_rtrmap_btree.c have a large amount of duplicated code, differing only in function names which add "rt" in the latter case. This can all be shared to reduce the cut & paste.
Tested with an auto xfstests run as well as the rmap group with rtdev & rmap enabled.
xfs_rmap_btree.c | 16 +-- xfs_rmap_btree.h | 26 ++++++ xfs_rtrmap_btree.c | 230 +++------------------------------------------------ 3 files changed, 51 insertions(+), 221 deletions(-)
[root@fedora-rawhide xfstests-dev]# ./check -g rmap
FSTYP -- xfs (non-debug)
PLATFORM -- Linux/x86_64 fedora-rawhide 7.3.0-rc3+ #330 SMPPREEMPT_DYNAMIC Fri Sep 18 10:23:43 CDT 2026MKFS_OPTIONS -- -f -rrtdev=/dev/loop0 -m rmapbt=1,reflink=1 /dev/vdb2 MOUNT_OPTIONS -- -o context=system_u:object_r:root_t:s0 -ortdev=/dev/loop0 /dev/vdb2 /mnt/scratch
generic/365 2s ... 2s xfs/114 3s ... 2s xfs/233 1s ... 1s xfs/234 5s ... 5s xfs/235 1s ... 1s xfs/236 6s ... 6s xfs/271 2s ... 2s xfs/272 2s ... 2s xfs/273 4s ... 5s xfs/274 3s ... 3s xfs/275 [not run] This test requires a valid $SCRATCH_LOGDEV xfs/276 3s ... 3s xfs/277 2s ... 2s xfs/310 0s ... 1s xfs/317 [not run] XFS error injection requires CONFIG_XFS_DEBUG xfs/331 2s ... 2s xfs/332 1s ... 1s xfs/334 1s ... 1s xfs/335 4s ... 3s xfs/336 5s ... 5s xfs/337 5s ... 5s xfs/338 2s ... 2s xfs/339 2s ... 2s xfs/340 2s ... 2s xfs/341 1s ... 1s xfs/342 2s ... 2s xfs/343 2s ... 2s xfs/450 1s ... 2s
Ran: generic/365 xfs/114 xfs/233 xfs/234 xfs/235 xfs/236 xfs/271 xfs/272 xfs/273 xfs/274 xfs/275 xfs/276 xfs/277 xfs/310 xfs/317 xfs/331 xfs/332 xfs/334 xfs/335 xfs/336 xfs/337 xfs/338 xfs/339 xfs/340 xfs/341 xfs/342 xfs/343 xfs/450
Not run: xfs/275 xfs/317
Passed all 28 tests