Commit 74859364 authored by Kiyoshi Ueda's avatar Kiyoshi Ueda Committed by Linus Torvalds

[PATCH] dm: tidy core formatting

Remove unnecessary spaces in dm.c.
Signed-off-by: default avatarKiyoshi Ueda <k-ueda@ct.jp.nec.com>
Signed-off-by: default avatarJun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
Cc: dm-devel@redhat.com
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f00b16ad
...@@ -89,7 +89,7 @@ struct mapped_device { ...@@ -89,7 +89,7 @@ struct mapped_device {
*/ */
atomic_t pending; atomic_t pending;
wait_queue_head_t wait; wait_queue_head_t wait;
struct bio_list deferred; struct bio_list deferred;
/* /*
* The current mapping. * The current mapping.
...@@ -482,7 +482,6 @@ static int clone_endio(struct bio *bio, unsigned int done, int error) ...@@ -482,7 +482,6 @@ static int clone_endio(struct bio *bio, unsigned int done, int error)
r = endio(tio->ti, bio, error, &tio->info); r = endio(tio->ti, bio, error, &tio->info);
if (r < 0) if (r < 0)
error = r; error = r;
else if (r > 0) else if (r > 0)
/* the target wants another shot at the io */ /* the target wants another shot at the io */
return 1; return 1;
...@@ -551,9 +550,7 @@ static void __map_bio(struct dm_target *ti, struct bio *clone, ...@@ -551,9 +550,7 @@ static void __map_bio(struct dm_target *ti, struct bio *clone,
clone->bi_sector); clone->bi_sector);
generic_make_request(clone); generic_make_request(clone);
} } else if (r < 0) {
else if (r < 0) {
/* error the io and bail out */ /* error the io and bail out */
md = tio->io->md; md = tio->io->md;
dec_pending(tio->io, r); dec_pending(tio->io, r);
...@@ -966,8 +963,8 @@ static struct mapped_device *alloc_dev(int minor) ...@@ -966,8 +963,8 @@ static struct mapped_device *alloc_dev(int minor)
md->queue->issue_flush_fn = dm_flush_all; md->queue->issue_flush_fn = dm_flush_all;
md->io_pool = mempool_create_slab_pool(MIN_IOS, _io_cache); md->io_pool = mempool_create_slab_pool(MIN_IOS, _io_cache);
if (!md->io_pool) if (!md->io_pool)
goto bad2; goto bad2;
md->tio_pool = mempool_create_slab_pool(MIN_IOS, _tio_cache); md->tio_pool = mempool_create_slab_pool(MIN_IOS, _tio_cache);
if (!md->tio_pool) if (!md->tio_pool)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment