Skip to content

btrfs: make extent buffer memory continuous

Qu Wenruo linux-btrfs oe-lkp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Changes in v1 from the cover letter

- Rebased to the latest misc-next branch Just a small conflicts in extent_buffer_memmove().

- Further cleanup the extent buffer bitmap operations

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: warn on tree blocks which are not nodesize alignedfs/btrfs/extent_io.c fs/btrfs/fs.h+15 -02 replies
2/3btrfs: map uncontinuous extent buffer pages into virtual address spacefs/btrfs/extent_io.c fs/btrfs/extent_io.h+77 -01 reply
3/3btrfs: utilize the physically/virtually continuous extent buffer memoryfs/btrfs/disk-io.c fs/btrfs/extent_io.c fs/btrfs/extent_io.h+47 -2630 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchAnand Jain
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] btrfs: make extent buffer memory continuous

[CHANGELOG]
RFC->v1:
- Rebased to the latest misc-next branch Just a small conflicts in extent_buffer_memmove().

- Further cleanup the extent buffer bitmap operations

[REPO]
https://github.com/adam900710/linux/tree/eb_page_cleanups

This includes the submitted extent buffer accessors cleanup as the dependency.

[BACKGROUND]
We have a lot of extent buffer code addressing the cross-page accesses, on the other hand, other filesystems like XFS is mapping its xfs_buf into kernel virtual address space, so that they can access the content of xfs_buf without bothering the page boundaries.

[OBJECTIVE]
This patchset is mostly learning from the xfs_buf, to greatly simplify the extent buffer accessors.

Now all the extent buffer accessors are turned into wrappers of memcpy()/memcmp()/memmove().

For now, it can pass test cases from btrfs group without new regressions.

Qu Wenruo (3):
btrfs: warn on tree blocks which are not nodesize aligned
btrfs: map uncontinuous extent buffer pages into virtual address space
btrfs: utilize the physically/virtually continuous extent buffer
memory

 fs/btrfs/disk-io.c   |  18 +--
 fs/btrfs/extent_io.c | 360 +++++++++++++------------------------------
 fs/btrfs/extent_io.h |  17 ++
 fs/btrfs/fs.h        |   7 +
 4 files changed, 139 insertions(+), 263 deletions(-)
Signature · 1 line
2.41.0