]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
btrfs: scrub: add assertions for worker pointers
authorDavid Sterba <dsterba@suse.com>
Tue, 12 Feb 2019 15:51:18 +0000 (16:51 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:38 +0000 (14:13 +0100)
commitc8352942745e260d68dfdfdfbecd276c2aac3277
treed733d79c6447923c9ddb1ec48f372aa164b19fdd
parentff09c4ca5992b839b4e8b411f55aecd75735fc16
btrfs: scrub: add assertions for worker pointers

The scrub worker pointers are not NULL iff the scrub is running, so
reset them back once the last reference is dropped. Add assertions to
the initial phase of scrub to verify that.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/scrub.c