diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2009-04-02 14:55:37 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-04-02 14:55:37 -0400 |
commit | 8a53c28db42853591edbe8103e2ce3c4f2917f42 (patch) | |
tree | fe09d07b660847c37fa8cd6ee67ee043f4302ba4 /drivers/md | |
parent | 53d5914f288b67ddc4d594d6a09568fe114bb909 (diff) |
dm: rename __split_bio
Rename __split_bio() to __split_and_process_bio() because it not only splits
the bio to serveral parts, but also submits them to target drivers.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index dac79d11458d..75d710493b7b 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c | |||
@@ -826,9 +826,9 @@ static int __clone_and_map(struct clone_info *ci) | |||
826 | } | 826 | } |
827 | 827 | ||
828 | /* | 828 | /* |
829 | * Split the bio into several clones. | 829 | * Split the bio into several clones and submit it to targets. |
830 | */ | 830 | */ |
831 | static int __split_bio(struct mapped_device *md, struct bio *bio) | 831 | static int __split_and_process_bio(struct mapped_device *md, struct bio *bio) |
832 | { | 832 | { |
833 | struct clone_info ci; | 833 | struct clone_info ci; |
834 | int error = 0; | 834 | int error = 0; |
@@ -951,7 +951,7 @@ static int dm_request(struct request_queue *q, struct bio *bio) | |||
951 | down_read(&md->io_lock); | 951 | down_read(&md->io_lock); |
952 | } | 952 | } |
953 | 953 | ||
954 | r = __split_bio(md, bio); | 954 | r = __split_and_process_bio(md, bio); |
955 | up_read(&md->io_lock); | 955 | up_read(&md->io_lock); |
956 | 956 | ||
957 | out_req: | 957 | out_req: |
@@ -1405,7 +1405,7 @@ static void __flush_deferred_io(struct mapped_device *md) | |||
1405 | struct bio *c; | 1405 | struct bio *c; |
1406 | 1406 | ||
1407 | while ((c = bio_list_pop(&md->deferred))) { | 1407 | while ((c = bio_list_pop(&md->deferred))) { |
1408 | if (__split_bio(md, c)) | 1408 | if (__split_and_process_bio(md, c)) |
1409 | bio_io_error(c); | 1409 | bio_io_error(c); |
1410 | } | 1410 | } |
1411 | 1411 | ||