diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-05-21 12:27:23 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-29 18:12:57 +0200 |
commit | d4b20733d203eea307986bd0502ba8d54afc2891 (patch) | |
tree | add57f9abc7c662f8cf158698bf43bd40eeeb3af /fs/btrfs/root-tree.c | |
parent | 21ebfbe7e06cafb05c41cc39b058be35acb6c5da (diff) | |
download | blackbird-op-linux-d4b20733d203eea307986bd0502ba8d54afc2891.tar.gz blackbird-op-linux-d4b20733d203eea307986bd0502ba8d54afc2891.zip |
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>
Diffstat (limited to 'fs/btrfs/root-tree.c')
0 files changed, 0 insertions, 0 deletions