Allocate eb in 16k an 64k slabs, cache folio address
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | btrfs: add 16K and 64K slabs for extent buffersfs/ fs/ | +68 | 8 replies | |
| 2/2 | btrfs: use cached extent buffer folio address everywherefs/ fs/ fs/ +2 more | +24 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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