]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: scrub: convert scrub_workers_refcnt to refcount_t
authorAnand Jain <anand.jain@oracle.com>
Wed, 30 Jan 2019 06:45:02 +0000 (14:45 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:38 +0000 (14:13 +0100)
commit74f0919f1a4b0d13c312d87b66b31f71c6165e1e
treea12824b74e38668c1d81e85eb1cfa64b19f13f40
parentabb27b34e55faf2eefcbcae7e4825a89b5aa7822
btrfs: scrub: convert scrub_workers_refcnt to refcount_t

Use the refcount_t for fs_info::scrub_workers_refcnt instead of int so
we get the extra checks. All reference changes are still done under
scrub_lock.

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