Nikolay Borisov d4b20733d2 btrfs: Streamline shared ref check in alloc_reserved_tree_block
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 <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2018-05-29 18:12:57 +02:00
..
2018-04-07 09:08:24 -07:00
2018-05-14 15:15:19 +01:00
2018-05-21 14:30:07 -04:00
2018-05-24 14:12:05 -07:00
2018-05-21 14:30:08 -04:00
2018-03-14 13:31:23 +01:00
2018-03-27 13:18:09 -04:00
2018-04-12 12:55:50 -07:00
2018-05-21 14:30:09 -04:00
2018-04-10 10:25:57 -07:00
2018-04-11 10:28:39 -07:00
2018-04-11 10:28:37 -07:00
2018-05-03 16:11:37 -06:00
2018-04-11 10:28:39 -07:00
2018-01-29 07:27:24 -08:00
2018-02-06 10:41:33 -08:00
2018-02-15 15:34:42 -05:00
2018-04-04 12:44:02 -07:00