aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index e38936d05df1..2a514036a83d 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -212,6 +212,7 @@ extern int rdev_clear_badblocks(struct md_rdev *rdev, sector_t s, int sectors,
212 int is_new); 212 int is_new);
213struct md_cluster_info; 213struct md_cluster_info;
214 214
215/* change UNSUPPORTED_MDDEV_FLAGS for each array type if new flag is added */
215enum mddev_flags { 216enum mddev_flags {
216 MD_ARRAY_FIRST_USE, /* First use of array, needs initialization */ 217 MD_ARRAY_FIRST_USE, /* First use of array, needs initialization */
217 MD_CLOSING, /* If set, we are closing the array, do not open 218 MD_CLOSING, /* If set, we are closing the array, do not open
@@ -702,4 +703,11 @@ static inline int mddev_is_clustered(struct mddev *mddev)
702{ 703{
703 return mddev->cluster_info && mddev->bitmap_info.nodes > 1; 704 return mddev->cluster_info && mddev->bitmap_info.nodes > 1;
704} 705}
706
707/* clear unsupported mddev_flags */
708static inline void mddev_clear_unsupported_flags(struct mddev *mddev,
709 unsigned long unsupported_flags)
710{
711 mddev->flags &= ~unsupported_flags;
712}
705#endif /* _MD_MD_H */ 713#endif /* _MD_MD_H */