Skip to content

Allocate eb in 16k an 64k slabs, cache folio address

David Sterba linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: add 16K and 64K slabs for extent buffersfs/btrfs/extent_io.c fs/btrfs/extent_io.h+68 -238 replies
2/2btrfs: use cached extent buffer folio address everywherefs/btrfs/accessors.c fs/btrfs/accessors.h fs/btrfs/ctree.c +2 more+24 -260 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Allocate eb in 16k an 64k slabs, cache folio address

Optimiztion of eb folio access.

NOTE: does not work with both patches applied, btrfs/002 hangs and I
don't see why. I'm sending this out in case somebody can spot it.

The extent buffer folio array is not used effectively on 16K node size, so there are two slabs allocated for the default size and 64k for everything else. With some pointer magic we can also cache the folio addresses and this allows object code reduction. Numbers are in the patches.

David Sterba (2):
btrfs: add 16K and 64K slabs for extent buffers
btrfs: use cached extent buffer folio address everywhere

 fs/btrfs/accessors.c | 12 +++---
 fs/btrfs/accessors.h |  5 +--
 fs/btrfs/ctree.c     |  2 +-
 fs/btrfs/disk-io.c   |  6 +--
 fs/btrfs/extent_io.c | 96 ++++++++++++++++++++++++++++++--------------
 fs/btrfs/extent_io.h | 20 ++++++---
 6 files changed, 92 insertions(+), 49 deletions(-)
Signature · 1 line
2.51.0