public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.com>
Subject: [PATCH 0/2] Speed up test_range_bit()
Date: Tue, 26 Sep 2023 20:44:15 +0200	[thread overview]
Message-ID: <cover.1695753339.git.dsterba@suse.com> (raw)

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(-)

-- 
2.41.0


             reply	other threads:[~2023-09-26 18:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-26 18:44 David Sterba [this message]
2023-09-26 18:44 ` [PATCH 1/2] btrfs: add specific helper for range bit test exists David Sterba
2023-09-26 18:44 ` [PATCH 2/2] btrfs: change test_range_bit to scan the whole range David Sterba

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1695753339.git.dsterba@suse.com \
    --to=dsterba@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox