diff options
author | Jonathan Brassow <jbrassow@redhat.com> | 2009-04-02 19:55:32 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-04-02 19:55:32 +0100 |
commit | d0216849519bec8dc96301a3cd80316e71243839 (patch) | |
tree | 06e7f1d2028e784213e17f1a8ea1abae9ffb0ab9 /drivers/md/dm-snap.h | |
parent | 0cea9c78270cdf1d2ad74ce0e083d5555a0842e8 (diff) | |
download | op-kernel-dev-d0216849519bec8dc96301a3cd80316e71243839.zip op-kernel-dev-d0216849519bec8dc96301a3cd80316e71243839.tar.gz |
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.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/md/dm-snap.h b/drivers/md/dm-snap.h index 93cd8ee..c2e4ebe 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) |