diff options
Diffstat (limited to 'fs/btrfs/dev-replace.c')
-rw-r--r-- | fs/btrfs/dev-replace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index 6f662b34ba0e..fa27b4e3b6c8 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c | |||
@@ -920,9 +920,9 @@ void btrfs_bio_counter_inc_noblocked(struct btrfs_fs_info *fs_info) | |||
920 | percpu_counter_inc(&fs_info->bio_counter); | 920 | percpu_counter_inc(&fs_info->bio_counter); |
921 | } | 921 | } |
922 | 922 | ||
923 | void btrfs_bio_counter_dec(struct btrfs_fs_info *fs_info) | 923 | void btrfs_bio_counter_sub(struct btrfs_fs_info *fs_info, s64 amount) |
924 | { | 924 | { |
925 | percpu_counter_dec(&fs_info->bio_counter); | 925 | percpu_counter_sub(&fs_info->bio_counter, amount); |
926 | 926 | ||
927 | if (waitqueue_active(&fs_info->replace_wait)) | 927 | if (waitqueue_active(&fs_info->replace_wait)) |
928 | wake_up(&fs_info->replace_wait); | 928 | wake_up(&fs_info->replace_wait); |