Skip to content

Speed up test_range_bit()

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 specific helper for range bit test existsfs/btrfs/defrag.c fs/btrfs/extent-io-tree.c fs/btrfs/extent-io-tree.h +2 more+40 -100 replies
2/2btrfs: change test_range_bit to scan the whole rangefs/btrfs/extent-io-tree.c fs/btrfs/extent-io-tree.h fs/btrfs/extent_io.c +2 more+22 -220 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] Speed up test_range_bit()

Split test_range_bit() to two helpers according to what callers need, slightly improving the loops by avoiding conditionals.

David Sterba (2):
btrfs: add specific helper for range bit test exists
btrfs: change test_range_bit to scan the whole range

 fs/btrfs/defrag.c         |  4 +--
 fs/btrfs/extent-io-tree.c | 65 +++++++++++++++++++++++++++++----------
 fs/btrfs/extent-io-tree.h |  5 +--
 fs/btrfs/extent_io.c      | 10 +++---
 fs/btrfs/inode.c          |  8 ++---
 fs/btrfs/relocation.c     |  2 +-
 6 files changed, 62 insertions(+), 32 deletions(-)
Signature · 1 line
2.41.0