mbox series

[0/2] Page and folio count helper cleanups

Message ID cover.1740503982.git.dsterba@suse.com (mailing list archive)
Headers show
Series Page and folio count helper cleanups | expand

Message

David Sterba Feb. 25, 2025, 5:24 p.m. UTC
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(-)