aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2012-01-16 15:27:58 -0500
committerChris Mason <chris.mason@oracle.com>2012-01-16 15:27:58 -0500
commitc126dea771be1b3c370c0ffc4a09e6a82d492a49 (patch)
tree99fc723ba2e89d767e260244cf8d19467bc68c8b /fs/btrfs/volumes.c
parent9785dbdf265ddc47d5c88267d89a97648c0dc14b (diff)
parent21adbd5cbb5344a3fca6bb7ddb2ab6cb03c44546 (diff)
Merge branch 'integrity-check-patch-v2' of git://btrfs.giantdisaster.de/git/btrfs into integration
Conflicts: fs/btrfs/ctree.h fs/btrfs/super.c Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index e0b7bb92a170..59e878f9fdcc 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -33,6 +33,7 @@
33#include "print-tree.h" 33#include "print-tree.h"
34#include "volumes.h" 34#include "volumes.h"
35#include "async-thread.h" 35#include "async-thread.h"
36#include "check-integrity.h"
36 37
37static int init_first_rw_device(struct btrfs_trans_handle *trans, 38static int init_first_rw_device(struct btrfs_trans_handle *trans,
38 struct btrfs_root *root, 39 struct btrfs_root *root,
@@ -247,7 +248,7 @@ loop_lock:
247 sync_pending = 0; 248 sync_pending = 0;
248 } 249 }
249 250
250 submit_bio(cur->bi_rw, cur); 251 btrfsic_submit_bio(cur->bi_rw, cur);
251 num_run++; 252 num_run++;
252 batch_run++; 253 batch_run++;
253 if (need_resched()) 254 if (need_resched())
@@ -3962,7 +3963,7 @@ static noinline int schedule_bio(struct btrfs_root *root,
3962 /* don't bother with additional async steps for reads, right now */ 3963 /* don't bother with additional async steps for reads, right now */
3963 if (!(rw & REQ_WRITE)) { 3964 if (!(rw & REQ_WRITE)) {
3964 bio_get(bio); 3965 bio_get(bio);
3965 submit_bio(rw, bio); 3966 btrfsic_submit_bio(rw, bio);
3966 bio_put(bio); 3967 bio_put(bio);
3967 return 0; 3968 return 0;
3968 } 3969 }
@@ -4057,7 +4058,7 @@ int btrfs_map_bio(struct btrfs_root *root, int rw, struct bio *bio,
4057 if (async_submit) 4058 if (async_submit)
4058 schedule_bio(root, dev, rw, bio); 4059 schedule_bio(root, dev, rw, bio);
4059 else 4060 else
4060 submit_bio(rw, bio); 4061 btrfsic_submit_bio(rw, bio);
4061 } else { 4062 } else {
4062 bio->bi_bdev = root->fs_info->fs_devices->latest_bdev; 4063 bio->bi_bdev = root->fs_info->fs_devices->latest_bdev;
4063 bio->bi_sector = logical >> 9; 4064 bio->bi_sector = logical >> 9;