]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc15c20251f4906b501b93f63e1f64099561ec7c6
tree47235cbf6990f4f85094c673bd8432ef43524e16
parent8e1d308d6e22bf95b9dfb9704093339cc0a7e005
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