Skip to contentSkip to conversation

master - cleanup: move system defines before structs

PATCH Zdenek Kabelac 1 participant 1 message Oct 13, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=09a8479cb70ea2761ebd6988926017aa13fc5f5d
Commit:        09a8479cb70ea2761ebd6988926017aa13fc5f5d
Parent:        0a633750f1e43aa655e5e6e05269aeab8650f55d
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Oct 12 11:35:33 2015 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Oct 13 15:22:58 2015 +0200

cleanup: move system defines before structs

---
 daemons/dmeventd/plugins/thin/dmeventd_thin.c |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)
daemons/dmeventd/plugins/thin/dmeventd_thin.c +10 -12
index 0801adf..d21e65b 100644
@@ -19,11 +19,19 @@
 #include <sys/wait.h>
 #include <stdarg.h>
 
-/* First warning when thin is 80% full. */
+/* TODO - move this mountinfo code into library to be reusable */
+#ifdef __linux__
+#  include "kdev_t.h"
+#else
+#  define MAJOR(x) major((x))
+#  define MINOR(x) minor((x))
+#endif
+
+/* First warning when thin data or metadata is 80% full. */
 #define WARNING_THRESH 80
 /* Run a check every 5%. */
 #define CHECK_STEP 5
-/* Do not bother checking thins less than 50% full. */
+/* Do not bother checking thin data or metadata is less than 50% full. */
 #define CHECK_MINIMUM 50
 
 #define UMOUNT_COMMAND "/bin/umount"
@@ -39,16 +47,6 @@ struct dso_state {
 	char cmd_str[1024];
 };
 
-
-/* TODO - move this mountinfo code into library to be reusable */
-#ifdef __linux__
-#  include "kdev_t.h"
-#else
-#  define MAJOR(x) major((x))
-#  define MINOR(x) minor((x))
-#  define MKDEV(x,y) makedev((x),(y))
-#endif
-
 DM_EVENT_LOG_FN("thin")
 
 /* Get dependencies for device, and try to find matching device */