]> 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)
commite98f882b39f7d23dfd7a6dbc70c996b6f0276567
treea12824b74e38668c1d81e85eb1cfa64b19f13f40
parent2c9e8a5efae1f5e66167e7643ee3a9cbfe25d375
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