Moved the definitions of DM_MULTISNAP_SYNC_SNAPSHOTS and DM_MULTISNAP_PRESERVE_ON_ERROR outside of 'struct dm_multisnap' --- drivers/md/dm-multisnap-private.h | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/md/dm-multisnap-private.h b/drivers/md/dm-multisnap-private.h index 935ddc1..f27e42a 100644 --- a/drivers/md/dm-multisnap-private.h +++ b/drivers/md/dm-multisnap-private.h @@ -39,6 +39,10 @@ struct dm_multisnap_bio_queue { #define DM_MULTISNAP_N_QUEUES 2 +/* multisnap flags which get set by multisnap_origin_ctr() */ +#define DM_MULTISNAP_SYNC_SNAPSHOTS 1 +#define DM_MULTISNAP_PRESERVE_ON_ERROR 2 + struct dm_multisnap { struct dm_multisnap_exception_store *store; struct dm_exception_store *ps; @@ -52,9 +56,6 @@ struct dm_multisnap { unsigned char chunk_shift; unsigned char flags; - /* FIXME these flags should be defined outside the struct, like agk fixed for merge */ -#define DM_MULTISNAP_SYNC_SNAPSHOTS 1 -#define DM_MULTISNAP_PRESERVE_ON_ERROR 2 sector_t origin_sectors; -- 1.6.6.1 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel