All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] fix and optimize btrfs_lookup_bio_sums()
@ 2023-02-10 16:15 Anand Jain
  2023-02-10 16:15 ` [PATCH 1/2] btrfs: avoid reusing variable names in nested blocks Anand Jain
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Anand Jain @ 2023-02-10 16:15 UTC (permalink / raw)
  To: linux-btrfs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-02-20 21:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-10 16:15 [PATCH 0/2] fix and optimize btrfs_lookup_bio_sums() Anand Jain
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

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.