md-linear.h 304 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _LINEAR_H
  3. #define _LINEAR_H
  4. struct dev_info {
  5. struct md_rdev *rdev;
  6. sector_t end_sector;
  7. };
  8. struct linear_conf
  9. {
  10. struct rcu_head rcu;
  11. sector_t array_sectors;
  12. int raid_disks; /* a copy of mddev->raid_disks */
  13. struct dev_info disks[0];
  14. };
  15. #endif