aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-snap-persistent.c
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2011-08-02 07:32:03 -0400
committerAlasdair G Kergon <agk@redhat.com>2011-08-02 07:32:03 -0400
commita2d2b0345a0f30c169b7d08b8cebdd4853fcb0f8 (patch)
treebaa54cd731f8c191eb8574ae34bc4f8638a6ed79 /drivers/md/dm-snap-persistent.c
parentaa3f0794d279cd154ac100f92ff3904ea1f56de2 (diff)
dm snapshot: style cleanups
Coding style cleanups. Signed-off-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Diffstat (limited to 'drivers/md/dm-snap-persistent.c')
-rw-r--r--drivers/md/dm-snap-persistent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-snap-persistent.c b/drivers/md/dm-snap-persistent.c
index 1a0acb8abdf6..d1f1d7017103 100644
--- a/drivers/md/dm-snap-persistent.c
+++ b/drivers/md/dm-snap-persistent.c
@@ -567,7 +567,7 @@ static int persistent_read_metadata(struct dm_exception_store *store,
567 ps->exceptions_per_area = (ps->store->chunk_size << SECTOR_SHIFT) / 567 ps->exceptions_per_area = (ps->store->chunk_size << SECTOR_SHIFT) /
568 sizeof(struct disk_exception); 568 sizeof(struct disk_exception);
569 ps->callbacks = dm_vcalloc(ps->exceptions_per_area, 569 ps->callbacks = dm_vcalloc(ps->exceptions_per_area,
570 sizeof(*ps->callbacks)); 570 sizeof(*ps->callbacks));
571 if (!ps->callbacks) 571 if (!ps->callbacks)
572 return -ENOMEM; 572 return -ENOMEM;
573 573
@@ -674,7 +674,7 @@ static void persistent_commit_exception(struct dm_exception_store *store,
674 * If we completely filled the current area, then wipe the next one. 674 * If we completely filled the current area, then wipe the next one.
675 */ 675 */
676 if ((ps->current_committed == ps->exceptions_per_area) && 676 if ((ps->current_committed == ps->exceptions_per_area) &&
677 zero_disk_area(ps, ps->current_area + 1)) 677 zero_disk_area(ps, ps->current_area + 1))
678 ps->valid = 0; 678 ps->valid = 0;
679 679
680 /* 680 /*