mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
btrfs: Remove redundant bio_get/bio_set pair from submit_one_bio
The bio is never referenced after it has been submitted so there is no point in getting an extra reference. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
ea057f6daf
commit
ffc9c8dd7d
1 changed files with 0 additions and 2 deletions
|
@ -2733,7 +2733,6 @@ static int __must_check submit_one_bio(struct bio *bio, int mirror_num,
|
||||||
start = page_offset(page) + bvec->bv_offset;
|
start = page_offset(page) + bvec->bv_offset;
|
||||||
|
|
||||||
bio->bi_private = NULL;
|
bio->bi_private = NULL;
|
||||||
bio_get(bio);
|
|
||||||
|
|
||||||
if (tree->ops)
|
if (tree->ops)
|
||||||
ret = tree->ops->submit_bio_hook(tree->private_data, bio,
|
ret = tree->ops->submit_bio_hook(tree->private_data, bio,
|
||||||
|
@ -2741,7 +2740,6 @@ static int __must_check submit_one_bio(struct bio *bio, int mirror_num,
|
||||||
else
|
else
|
||||||
btrfsic_submit_bio(bio);
|
btrfsic_submit_bio(bio);
|
||||||
|
|
||||||
bio_put(bio);
|
|
||||||
return blk_status_to_errno(ret);
|
return blk_status_to_errno(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue