diff options
author | Jonathan Brassow <jbrassow@redhat.com> | 2009-01-05 22:05:16 -0500 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-01-05 22:05:16 -0500 |
commit | 1ae25f9c933d1432fbffdf3e126051a974608abf (patch) | |
tree | 5a15a6330107a70a51d0c3cfe0bf703762e79839 /drivers/md/dm-exception-store.c | |
parent | aea53d92f70eeb00ae480e399a997dd55fd5055d (diff) |
dm snapshot: rename struct exception_store
Rename struct exception_store to dm_exception_store.
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-exception-store.c')
-rw-r--r-- | drivers/md/dm-exception-store.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c index ef152e600cb6..c5c9a2652315 100644 --- a/drivers/md/dm-exception-store.c +++ b/drivers/md/dm-exception-store.c | |||
@@ -462,19 +462,19 @@ static int read_exceptions(struct pstore *ps) | |||
462 | return 0; | 462 | return 0; |
463 | } | 463 | } |
464 | 464 | ||
465 | static struct pstore *get_info(struct exception_store *store) | 465 | static struct pstore *get_info(struct dm_exception_store *store) |
466 | { | 466 | { |
467 | return (struct pstore *) store->context; | 467 | return (struct pstore *) store->context; |
468 | } | 468 | } |
469 | 469 | ||
470 | static void persistent_fraction_full(struct exception_store *store, | 470 | static void persistent_fraction_full(struct dm_exception_store *store, |
471 | sector_t *numerator, sector_t *denominator) | 471 | sector_t *numerator, sector_t *denominator) |
472 | { | 472 | { |
473 | *numerator = get_info(store)->next_free * store->snap->chunk_size; | 473 | *numerator = get_info(store)->next_free * store->snap->chunk_size; |
474 | *denominator = get_dev_size(store->snap->cow->bdev); | 474 | *denominator = get_dev_size(store->snap->cow->bdev); |
475 | } | 475 | } |
476 | 476 | ||
477 | static void persistent_destroy(struct exception_store *store) | 477 | static void persistent_destroy(struct dm_exception_store *store) |
478 | { | 478 | { |
479 | struct pstore *ps = get_info(store); | 479 | struct pstore *ps = get_info(store); |
480 | 480 | ||
@@ -485,7 +485,7 @@ static void persistent_destroy(struct exception_store *store) | |||
485 | kfree(ps); | 485 | kfree(ps); |
486 | } | 486 | } |
487 | 487 | ||
488 | static int persistent_read_metadata(struct exception_store *store) | 488 | static int persistent_read_metadata(struct dm_exception_store *store) |
489 | { | 489 | { |
490 | int r, uninitialized_var(new_snapshot); | 490 | int r, uninitialized_var(new_snapshot); |
491 | struct pstore *ps = get_info(store); | 491 | struct pstore *ps = get_info(store); |
@@ -551,7 +551,7 @@ static int persistent_read_metadata(struct exception_store *store) | |||
551 | return 0; | 551 | return 0; |
552 | } | 552 | } |
553 | 553 | ||
554 | static int persistent_prepare(struct exception_store *store, | 554 | static int persistent_prepare(struct dm_exception_store *store, |
555 | struct dm_snap_exception *e) | 555 | struct dm_snap_exception *e) |
556 | { | 556 | { |
557 | struct pstore *ps = get_info(store); | 557 | struct pstore *ps = get_info(store); |
@@ -578,7 +578,7 @@ static int persistent_prepare(struct exception_store *store, | |||
578 | return 0; | 578 | return 0; |
579 | } | 579 | } |
580 | 580 | ||
581 | static void persistent_commit(struct exception_store *store, | 581 | static void persistent_commit(struct dm_exception_store *store, |
582 | struct dm_snap_exception *e, | 582 | struct dm_snap_exception *e, |
583 | void (*callback) (void *, int success), | 583 | void (*callback) (void *, int success), |
584 | void *callback_context) | 584 | void *callback_context) |
@@ -640,7 +640,7 @@ static void persistent_commit(struct exception_store *store, | |||
640 | ps->callback_count = 0; | 640 | ps->callback_count = 0; |
641 | } | 641 | } |
642 | 642 | ||
643 | static void persistent_drop(struct exception_store *store) | 643 | static void persistent_drop(struct dm_exception_store *store) |
644 | { | 644 | { |
645 | struct pstore *ps = get_info(store); | 645 | struct pstore *ps = get_info(store); |
646 | 646 | ||
@@ -649,7 +649,7 @@ static void persistent_drop(struct exception_store *store) | |||
649 | DMWARN("write header failed"); | 649 | DMWARN("write header failed"); |
650 | } | 650 | } |
651 | 651 | ||
652 | int dm_create_persistent(struct exception_store *store) | 652 | int dm_create_persistent(struct dm_exception_store *store) |
653 | { | 653 | { |
654 | struct pstore *ps; | 654 | struct pstore *ps; |
655 | 655 | ||
@@ -694,17 +694,17 @@ struct transient_c { | |||
694 | sector_t next_free; | 694 | sector_t next_free; |
695 | }; | 695 | }; |
696 | 696 | ||
697 | static void transient_destroy(struct exception_store *store) | 697 | static void transient_destroy(struct dm_exception_store *store) |
698 | { | 698 | { |
699 | kfree(store->context); | 699 | kfree(store->context); |
700 | } | 700 | } |
701 | 701 | ||
702 | static int transient_read_metadata(struct exception_store *store) | 702 | static int transient_read_metadata(struct dm_exception_store *store) |
703 | { | 703 | { |
704 | return 0; | 704 | return 0; |
705 | } | 705 | } |
706 | 706 | ||
707 | static int transient_prepare(struct exception_store *store, | 707 | static int transient_prepare(struct dm_exception_store *store, |
708 | struct dm_snap_exception *e) | 708 | struct dm_snap_exception *e) |
709 | { | 709 | { |
710 | struct transient_c *tc = (struct transient_c *) store->context; | 710 | struct transient_c *tc = (struct transient_c *) store->context; |
@@ -719,7 +719,7 @@ static int transient_prepare(struct exception_store *store, | |||
719 | return 0; | 719 | return 0; |
720 | } | 720 | } |
721 | 721 | ||
722 | static void transient_commit(struct exception_store *store, | 722 | static void transient_commit(struct dm_exception_store *store, |
723 | struct dm_snap_exception *e, | 723 | struct dm_snap_exception *e, |
724 | void (*callback) (void *, int success), | 724 | void (*callback) (void *, int success), |
725 | void *callback_context) | 725 | void *callback_context) |
@@ -728,14 +728,14 @@ static void transient_commit(struct exception_store *store, | |||
728 | callback(callback_context, 1); | 728 | callback(callback_context, 1); |
729 | } | 729 | } |
730 | 730 | ||
731 | static void transient_fraction_full(struct exception_store *store, | 731 | static void transient_fraction_full(struct dm_exception_store *store, |
732 | sector_t *numerator, sector_t *denominator) | 732 | sector_t *numerator, sector_t *denominator) |
733 | { | 733 | { |
734 | *numerator = ((struct transient_c *) store->context)->next_free; | 734 | *numerator = ((struct transient_c *) store->context)->next_free; |
735 | *denominator = get_dev_size(store->snap->cow->bdev); | 735 | *denominator = get_dev_size(store->snap->cow->bdev); |
736 | } | 736 | } |
737 | 737 | ||
738 | int dm_create_transient(struct exception_store *store) | 738 | int dm_create_transient(struct dm_exception_store *store) |
739 | { | 739 | { |
740 | struct transient_c *tc; | 740 | struct transient_c *tc; |
741 | 741 | ||