Thread (3 messages) 3 messages, 3 authors, 2021-11-22

Re: [PATCH] btrfs: get next entry in tree_search_offset before doing checks

From: Josef Bacik <josef@toxicpanda.com>
Date: 2021-11-22 16:47:29

On Mon, Nov 22, 2021 at 05:16:46PM +0200, Nikolay Borisov wrote:
This is a small optimisation since the currenty 'entry' is already
checked in the if () {} else if {} construct above the loop. In essence
the first iteration of the final while loop is redundant. To eliminate
this extra check simply get the next entry at the beginning of the loop.
You forgot your signed-off-by, but you can add my

Reviewed-by: Josef Bacik <josef@toxicpanda.com>

Thanks,

Josef
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help