summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/delayed-ref.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-02-12 16:51:18 +0100
committerDavid Sterba <dsterba@suse.com>2019-02-25 14:13:38 +0100
commitc8352942745e260d68dfdfdfbecd276c2aac3277 (patch)
treed733d79c6447923c9ddb1ec48f372aa164b19fdd /fs/btrfs/delayed-ref.c
parentbtrfs: scrub: convert scrub_workers_refcnt to refcount_t (diff)
downloadlinux-c8352942745e260d68dfdfdfbecd276c2aac3277.tar.xz
linux-c8352942745e260d68dfdfdfbecd276c2aac3277.zip
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>
Diffstat (limited to 'fs/btrfs/delayed-ref.c')
0 files changed, 0 insertions, 0 deletions