summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2017-12-13 10:25:39 +0200
committerDavid Sterba <dsterba@suse.com>2018-01-22 16:08:19 +0100
commitffc9c8dd7d5c902b31a3caae3e55f019a85c90ea (patch)
treef50c94b736c15807ca4e70cd475a377623a715a1 /fs/btrfs/extent_io.c
parentea057f6dafcb6d21dd2c8be0e45ba3979b98e2b3 (diff)
downloadop-kernel-dev-ffc9c8dd7d5c902b31a3caae3e55f019a85c90ea.zip
op-kernel-dev-ffc9c8dd7d5c902b31a3caae3e55f019a85c90ea.tar.gz
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>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index eee9cc5..c405914 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2733,7 +2733,6 @@ static int __must_check submit_one_bio(struct bio *bio, int mirror_num,
start = page_offset(page) + bvec->bv_offset;
bio->bi_private = NULL;
- bio_get(bio);
if (tree->ops)
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
btrfsic_submit_bio(bio);
- bio_put(bio);
return blk_status_to_errno(ret);
}
OpenPOWER on IntegriCloud