summaryrefslogtreecommitdiff
path: root/drivers/md/dm-exception-store.h
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2009-01-06 06:05:16 +0300
committerAlasdair G Kergon <agk@redhat.com>2009-01-06 06:05:16 +0300
commit1ae25f9c933d1432fbffdf3e126051a974608abf (patch)
tree5a15a6330107a70a51d0c3cfe0bf703762e79839 /drivers/md/dm-exception-store.h
parentaea53d92f70eeb00ae480e399a997dd55fd5055d (diff)
downloadlinux-1ae25f9c933d1432fbffdf3e126051a974608abf.tar.xz
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.h')
-rw-r--r--drivers/md/dm-exception-store.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/md/dm-exception-store.h b/drivers/md/dm-exception-store.h
index d75f775562e5..25677df8dd59 100644
--- a/drivers/md/dm-exception-store.h
+++ b/drivers/md/dm-exception-store.h
@@ -36,28 +36,29 @@ struct dm_snap_exception {
* Abstraction to handle the meta/layout of exception stores (the
* COW device).
*/
-struct exception_store {
+struct dm_exception_store {
+
/*
* Destroys this object when you've finished with it.
*/
- void (*destroy) (struct exception_store *store);
+ void (*destroy) (struct dm_exception_store *store);
/*
* The target shouldn't read the COW device until this is
* called.
*/
- int (*read_metadata) (struct exception_store *store);
+ int (*read_metadata) (struct dm_exception_store *store);
/*
* Find somewhere to store the next exception.
*/
- int (*prepare_exception) (struct exception_store *store,
+ int (*prepare_exception) (struct dm_exception_store *store,
struct dm_snap_exception *e);
/*
* Update the metadata with this exception.
*/
- void (*commit_exception) (struct exception_store *store,
+ void (*commit_exception) (struct dm_exception_store *store,
struct dm_snap_exception *e,
void (*callback) (void *, int success),
void *callback_context);
@@ -65,12 +66,12 @@ struct exception_store {
/*
* The snapshot is invalid, note this in the metadata.
*/
- void (*drop_snapshot) (struct exception_store *store);
+ void (*drop_snapshot) (struct dm_exception_store *store);
/*
* Return how full the snapshot is.
*/
- void (*fraction_full) (struct exception_store *store,
+ void (*fraction_full) (struct dm_exception_store *store,
sector_t *numerator,
sector_t *denominator);
@@ -124,8 +125,8 @@ static inline void dm_consecutive_chunk_count_inc(struct dm_snap_exception *e)
/*
* Two exception store implementations.
*/
-int dm_create_persistent(struct exception_store *store);
+int dm_create_persistent(struct dm_exception_store *store);
-int dm_create_transient(struct exception_store *store);
+int dm_create_transient(struct dm_exception_store *store);
#endif /* _LINUX_DM_EXCEPTION_STORE */