OSDN Git Service

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)
commitb4ff5ad72e9331aabfa92456403946d17c4959d5
treea4872b86d6683e4edd2d4860d7e2feb587dc4487
parentc9f540fa6f4cab5a506b157e7bf2e5373c0241c2
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