Skip to content

Page and folio count helper cleanups

David Sterba linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: add __pure attribute to eb page and folio countersfs/btrfs/extent_io.h+5 -20 replies
2/2btrfs: use num_extent_folios() in for loop boundsfs/btrfs/disk-io.c fs/btrfs/extent_io.c+19 -320 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] Page and folio count helper cleanups

Adding the __pure attribute to num_extent_folios() allows some optimizations that can reduce stack space usage.

David Sterba (2):
btrfs: add __pure attribute to eb page and folio counters
btrfs: use num_extent_folios() in for loop bounds

 fs/btrfs/disk-io.c   |  3 +--
 fs/btrfs/extent_io.c | 48 +++++++++++++++++---------------------------
 fs/btrfs/extent_io.h |  7 +++++--
 3 files changed, 24 insertions(+), 34 deletions(-)
Signature · 1 line
2.47.1