All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 0/2] fix and optimize btrfs_lookup_bio_sums()
Date: Sat, 11 Feb 2023 00:15:53 +0800	[thread overview]
Message-ID: <cover.1676041962.git.anand.jain@oracle.com> (raw)

The function btrfs_lookup_bio_sums() has %ret declaration two times
 blk_status_t ret = BLK_STS_OK;
and also in an if statement block.
 int ret;

Patch 1/2 addresses this issue, while patch 2/2 optimizes the return
value of search_file_offset_in_bio().

Anand Jain (2):
  btrfs: avoid reusing variable names in nested blocks
  btrfs: optimize search_file_offset_in_bio return value to bool

 fs/btrfs/file-item.c | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

-- 
2.31.1


             reply	other threads:[~2023-02-10 16:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-10 16:15 Anand Jain [this message]
2023-02-10 16:15 ` [PATCH 1/2] btrfs: avoid reusing variable names in nested blocks Anand Jain
2023-02-13  6:36   ` Christoph Hellwig
2023-02-10 16:15 ` [PATCH 2/2] btrfs: optimize search_file_offset_in_bio return value to bool Anand Jain
2023-02-13  6:36   ` Christoph Hellwig
2023-02-20 20:16   ` David Sterba
2023-02-20 21:44     ` Anand Jain
2023-02-20 20:17 ` [PATCH 0/2] fix and optimize btrfs_lookup_bio_sums() 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.1676041962.git.anand.jain@oracle.com \
    --to=anand.jain@oracle.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.