aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/dm-snap.h
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2009-04-02 19:55:32 +0100
committerAlasdair G Kergon <agk@redhat.com>2009-04-02 19:55:32 +0100
commitd0216849519bec8dc96301a3cd80316e71243839 (patch)
tree06e7f1d2028e784213e17f1a8ea1abae9ffb0ab9 /drivers/md/dm-snap.h
parent0cea9c78270cdf1d2ad74ce0e083d5555a0842e8 (diff)
dm exception store: move chunk_fields
Move chunk fields from snapshot to 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-snap.h')
-rw-r--r--drivers/md/dm-snap.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/md/dm-snap.h b/drivers/md/dm-snap.h
index 93cd8ee8997..c2e4ebedbd4 100644
--- a/drivers/md/dm-snap.h
+++ b/drivers/md/dm-snap.h
@@ -32,11 +32,6 @@ struct dm_snapshot {
/* List of snapshots per Origin */
struct list_head list;
- /* Size of data blocks saved - must be a power of 2 */
- chunk_t chunk_size;
- chunk_t chunk_mask;
- chunk_t chunk_shift;
-
/* You can't use a snapshot if this is 0 (e.g. if full) */
int valid;
@@ -84,12 +79,12 @@ static inline sector_t get_dev_size(struct block_device *bdev)
static inline chunk_t sector_to_chunk(struct dm_snapshot *s, sector_t sector)
{
- return (sector & ~s->chunk_mask) >> s->chunk_shift;
+ return (sector & ~s->store->chunk_mask) >> s->store->chunk_shift;
}
static inline sector_t chunk_to_sector(struct dm_snapshot *s, chunk_t chunk)
{
- return chunk << s->chunk_shift;
+ return chunk << s->store->chunk_shift;
}
static inline int bdev_equal(struct block_device *lhs, struct block_device *rhs)