Thread (10 messages) 10 messages, 2 authors, 2018-05-22

Re: [PATCH 4/4] btrfs: Streamline shared ref check in alloc_reserved_tree_block

From: David Sterba <hidden>
Date: 2018-05-22 15:25:51

On Mon, May 21, 2018 at 12:27:23PM +0300, Nikolay Borisov wrote:
Instead of setting "parent" to ref->parent only when dealing with
a shared ref and subsequently performing another check to see
if (parent > 0), check the "node->type" directly and act accordingly.
This makes the code more streamline. No functional changes.

Signed-off-by: Nikolay Borisov <redacted>
Reviewed-by: David Sterba <dsterba@suse.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help