]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove redundant bio_get/set from submit_dio_repair_bio
authorNikolay Borisov <nborisov@suse.com>
Wed, 13 Dec 2017 08:25:38 +0000 (10:25 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:19 +0000 (16:08 +0100)
commit51b0e05cc619c7d87b2ba331cecd6779c9c79d7f
tree2027239c0fe7dc2c4e896402494b4dabdab5a1be
parente56ef91b5fcd90d37926b32baac82696df46414b
btrfs: Remove redundant bio_get/set from submit_dio_repair_bio

The bio that is passsed is the newly created repair bio which already
has a reference count of 1, which is going to be consumed by the
endio routine on successful submission. On error the handler also
calls bio_put.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c