gmirror: Relocate DEVICE_FLAGS to adjacent lines

gmirror's sc_flags is shared between some on-disk state and some runtime
only state.  There's no real reason for that and they could probably be
split up.  Until they are, locate all of the flags for the same field
nearby each other in the source, for clarity.

No functional change.

Sponsored by:	Dell EMC Isilon
This commit is contained in:
Conrad Meyer 2019-01-23 16:44:21 +00:00
parent f79ba6d75b
commit 797f009d59
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343347

View File

@ -78,6 +78,12 @@
G_MIRROR_DEVICE_FLAG_NOFAILSYNC)
#ifdef _KERNEL
#define G_MIRROR_DEVICE_FLAG_DESTROY 0x0100000000000000ULL
#define G_MIRROR_DEVICE_FLAG_DRAIN 0x0200000000000000ULL
#define G_MIRROR_DEVICE_FLAG_CLOSEWAIT 0x0400000000000000ULL
#define G_MIRROR_DEVICE_FLAG_TASTING 0x0800000000000000ULL
#define G_MIRROR_DEVICE_FLAG_WIPE 0x1000000000000000ULL
extern int g_mirror_debug;
#define G_MIRROR_DEBUG(lvl, ...) do { \
@ -167,12 +173,6 @@ struct g_mirror_event {
TAILQ_ENTRY(g_mirror_event) e_next;
};
#define G_MIRROR_DEVICE_FLAG_DESTROY 0x0100000000000000ULL
#define G_MIRROR_DEVICE_FLAG_DRAIN 0x0200000000000000ULL
#define G_MIRROR_DEVICE_FLAG_CLOSEWAIT 0x0400000000000000ULL
#define G_MIRROR_DEVICE_FLAG_TASTING 0x0800000000000000ULL
#define G_MIRROR_DEVICE_FLAG_WIPE 0x1000000000000000ULL
#define G_MIRROR_DEVICE_STATE_STARTING 0
#define G_MIRROR_DEVICE_STATE_RUNNING 1