aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-exception-store.h
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2009-01-05 22:05:16 -0500
committerAlasdair G Kergon <agk@redhat.com>2009-01-05 22:05:16 -0500
commit1ae25f9c933d1432fbffdf3e126051a974608abf (patch)
tree5a15a6330107a70a51d0c3cfe0bf703762e79839 /drivers/md/dm-exception-store.h
parentaea53d92f70eeb00ae480e399a997dd55fd5055d (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.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 {
36 * Abstraction to handle the meta/layout of exception stores (the 36 * Abstraction to handle the meta/layout of exception stores (the
37 * COW device). 37 * COW device).
38 */ 38 */
39struct exception_store { 39struct dm_exception_store {
40
40 /* 41 /*
41 * Destroys this object when you've finished with it. 42 * Destroys this object when you've finished with it.
42 */ 43 */
43 void (*destroy) (struct exception_store *store); 44 void (*destroy) (struct dm_exception_store *store);
44 45
45 /* 46 /*
46 * The target shouldn't read the COW device until this is 47 * The target shouldn't read the COW device until this is
47 * called. 48 * called.
48 */ 49 */
49 int (*read_metadata) (struct exception_store *store); 50 int (*read_metadata) (struct dm_exception_store *store);
50 51
51 /* 52 /*
52 * Find somewhere to store the next exception. 53 * Find somewhere to store the next exception.
53 */ 54 */
54 int (*prepare_exception) (struct exception_store *store, 55 int (*prepare_exception) (struct dm_exception_store *store,
55 struct dm_snap_exception *e); 56 struct dm_snap_exception *e);
56 57
57 /* 58 /*
58 * Update the metadata with this exception. 59 * Update the metadata with this exception.
59 */ 60 */
60 void (*commit_exception) (struct exception_store *store, 61 void (*commit_exception) (struct dm_exception_store *store,
61 struct dm_snap_exception *e, 62 struct dm_snap_exception *e,
62 void (*callback) (void *, int success), 63 void (*callback) (void *, int success),
63 void *callback_context); 64 void *callback_context);
@@ -65,12 +66,12 @@ struct exception_store {
65 /* 66 /*
66 * The snapshot is invalid, note this in the metadata. 67 * The snapshot is invalid, note this in the metadata.
67 */ 68 */
68 void (*drop_snapshot) (struct exception_store *store); 69 void (*drop_snapshot) (struct dm_exception_store *store);
69 70
70 /* 71 /*
71 * Return how full the snapshot is. 72 * Return how full the snapshot is.
72 */ 73 */
73 void (*fraction_full) (struct exception_store *store, 74 void (*fraction_full) (struct dm_exception_store *store,
74 sector_t *numerator, 75 sector_t *numerator,
75 sector_t *denominator); 76 sector_t *denominator);
76 77
@@ -124,8 +125,8 @@ static inline void dm_consecutive_chunk_count_inc(struct dm_snap_exception *e)
124/* 125/*
125 * Two exception store implementations. 126 * Two exception store implementations.
126 */ 127 */
127int dm_create_persistent(struct exception_store *store); 128int dm_create_persistent(struct dm_exception_store *store);
128 129
129int dm_create_transient(struct exception_store *store); 130int dm_create_transient(struct dm_exception_store *store);
130 131
131#endif /* _LINUX_DM_EXCEPTION_STORE */ 132#endif /* _LINUX_DM_EXCEPTION_STORE */