Thread (2 messages) 2 messages, 2 authors, 2012-02-26

md: Use existed macro instead of number

flat view

From: kedacomkernel <hidden>
Date: 2012-02-24 07:00:21
Subsystem: software raid (multiple disks) support, the rest · Maintainers: Song Liu, Yu Kuai, Linus Torvalds

From d5905ed3c5355a13e954057856733f8ad64a86ac Mon Sep 17 00:00:00 2001
From: majianpeng <redacted>
Date: Fri, 24 Feb 2012 22:49:45 +0800
Subject: [PATCH] md: Use existed macro instead of number


Signed-off-by: majianpeng <redacted>
---
 include/linux/raid/md_p.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/linux/raid/md_p.h b/include/linux/raid/md_p.h
index 6f6df86..7c3577c 100644
--- a/include/linux/raid/md_p.h
+++ b/include/linux/raid/md_p.h
@@ -281,6 +281,8 @@ struct mdp_superblock_1 {
 					    * active device with same 'role'.
 					    * 'recovery_offset' is also set.
 					    */
-#define	MD_FEATURE_ALL			(1|2|4|8|16)
-
+#define	MD_FEATURE_ALL			(MD_FEATURE_BITMAP_OFFSET | MD_FEATURE_RECOVERY_OFFSET | \
+					MD_FEATURE_RESHAPE_ACTIVE | MD_FEATURE_BAD_BLOCKS | \
+					MD_FEATURE_REPLACEMENT)
+
 #endif 
-- 
1.7.5.4

 				
--------------
kedacomkernel
2012-02-24
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help