btrfs: reset device stat using btrfs_dev_stat_set
authorAnand Jain <anand.jain@oracle.com>
Wed, 7 Aug 2019 08:21:19 +0000 (16:21 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 9 Sep 2019 12:59:06 +0000 (14:59 +0200)
commit4e411a7d044168520d936264c9fe40847cf031eb
tree2ddeaa2204d322a4aa7c3b7fce5297793e3b29b2
parent73798c465b66ed55d6f0adafbda42aca854acbf1
btrfs: reset device stat using btrfs_dev_stat_set

btrfs_dev_stat_reset() is an overdo in terms of wrapping. So this patch
open codes btrfs_dev_stat_reset().

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/volumes.c
fs/btrfs/volumes.h