btrfs: scrub: simplify cleanup of wr_ctx in scrub_free_ctx
authorDavid Sterba <dsterba@suse.com>
Tue, 16 May 2017 17:10:29 +0000 (19:10 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:26:00 +0000 (18:26 +0200)
commit4e2814ef04080fae123edf8fcef555f5a424e7ba
tree47235cbf6990f4f85094c673bd8432ef43524e16
parente241ddeb9c6c9df05911fb156baa4fb442b74983
btrfs: scrub: simplify cleanup of wr_ctx in scrub_free_ctx

We don't need to take the mutex and zero out wr_cur_bio, as this is
called after the scrub finished.

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