diff options
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 09311b3066df..23a5b0aba00a 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -179,7 +179,7 @@ loop: | |||
179 | cur = pending; | 179 | cur = pending; |
180 | pending = pending->bi_next; | 180 | pending = pending->bi_next; |
181 | cur->bi_next = NULL; | 181 | cur->bi_next = NULL; |
182 | atomic_dec(&device->dev_root->fs_info->nr_async_submits); | 182 | atomic_dec(&device->dev_root->fs_info->nr_async_bios); |
183 | 183 | ||
184 | BUG_ON(atomic_read(&cur->bi_cnt) == 0); | 184 | BUG_ON(atomic_read(&cur->bi_cnt) == 0); |
185 | bio_get(cur); | 185 | bio_get(cur); |
@@ -2145,12 +2145,12 @@ int schedule_bio(struct btrfs_root *root, struct btrfs_device *device, | |||
2145 | } | 2145 | } |
2146 | 2146 | ||
2147 | /* | 2147 | /* |
2148 | * nr_async_sumbits allows us to reliably return congestion to the | 2148 | * nr_async_bios allows us to reliably return congestion to the |
2149 | * higher layers. Otherwise, the async bio makes it appear we have | 2149 | * higher layers. Otherwise, the async bio makes it appear we have |
2150 | * made progress against dirty pages when we've really just put it | 2150 | * made progress against dirty pages when we've really just put it |
2151 | * on a queue for later | 2151 | * on a queue for later |
2152 | */ | 2152 | */ |
2153 | atomic_inc(&root->fs_info->nr_async_submits); | 2153 | atomic_inc(&root->fs_info->nr_async_bios); |
2154 | WARN_ON(bio->bi_next); | 2154 | WARN_ON(bio->bi_next); |
2155 | bio->bi_next = NULL; | 2155 | bio->bi_next = NULL; |
2156 | bio->bi_rw |= rw; | 2156 | bio->bi_rw |= rw; |