summaryrefslogtreecommitdiff
path: root/drivers/md/md-linear.h
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2017-10-11 00:02:41 +0300
committerShaohua Li <shli@fb.com>2017-10-17 05:06:36 +0300
commit935fe0983e09f4f7331ebf5ea4ae2124f6e9f9e8 (patch)
treea3debe3ff3a5c4462b416f8992577d30c06a8a8a /drivers/md/md-linear.h
parent584ed9fa9532f8b9d5955628ff87ee3b2ab9f5a9 (diff)
downloadlinux-935fe0983e09f4f7331ebf5ea4ae2124f6e9f9e8.tar.xz
md: rename some drivers/md/ files to have an "md-" prefix
Motivated by the desire to illiminate the imprecise nature of DM-specific patches being unnecessarily sent to both the MD maintainer and mailing-list. Which is born out of the fact that DM files also reside in drivers/md/ Now all MD-specific files in drivers/md/ start with either "raid" or "md-" and the MAINTAINERS file has been updated accordingly. Shaohua: don't change module name Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/md-linear.h')
-rw-r--r--drivers/md/md-linear.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/md/md-linear.h b/drivers/md/md-linear.h
new file mode 100644
index 000000000000..8d392e6098b3
--- /dev/null
+++ b/drivers/md/md-linear.h
@@ -0,0 +1,16 @@
+#ifndef _LINEAR_H
+#define _LINEAR_H
+
+struct dev_info {
+ struct md_rdev *rdev;
+ sector_t end_sector;
+};
+
+struct linear_conf
+{
+ struct rcu_head rcu;
+ sector_t array_sectors;
+ int raid_disks; /* a copy of mddev->raid_disks */
+ struct dev_info disks[0];
+};
+#endif