]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: use struct completion in scrub_submit_raid56_bio_wait
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 1 Dec 2017 00:26:39 +0000 (17:26 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:15 +0000 (16:08 +0100)
commit1032f26a513cbd89942fd905e5a9783f63b6d2b6
treea4872b86d6683e4edd2d4860d7e2feb587dc4487
parent0b902d0653e83b5cfac91ccb13618ee0c369649f
Btrfs: use struct completion in scrub_submit_raid56_bio_wait

This changes to use struct completion directly and removes 'struct
scrub_bio_ret' along with the code using it.

This struct is used to get the return value from bio, but the caller can
access bio to get the return value directly and is holding a reference
on it so it won't go away underneath us and can be removed safely.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c