Skip to content

fix and optimize btrfs_lookup_bio_sums()

Anand Jain linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: avoid reusing variable names in nested blocksfs/btrfs/file-item.c+4 -51 reply
2/2btrfs: optimize search_file_offset_in_bio return value to boolfs/btrfs/file-item.c+4 -43 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] fix and optimize btrfs_lookup_bio_sums()

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(-)
Signature · 1 line
2.31.1