• Home
  • Raw
  • Download

Lines Matching defs:mddev

52 	struct mddev *mddev;		/* RAID array if running */  member
283 struct mddev { struct
284 void *private;
285 struct md_personality *pers;
286 dev_t unit;
287 int md_minor;
288 struct list_head disks;
289 unsigned long flags;
290 unsigned long sb_flags;
292 int suspended;
293 atomic_t active_io;
294 int ro;
295 int sysfs_active; /* set when sysfs deletes
299 struct gendisk *gendisk;
301 struct kobject kobj;
302 int hold_active;
307 int major_version,
308 minor_version,
309 patch_version;
310 int persistent;
311 int external; /* metadata is
313 char metadata_type[17]; /* externally set*/
314 int chunk_sectors;
315 time64_t ctime, utime;
316 int level, layout;
317 char clevel[16];
318 int raid_disks;
319 int max_disks;
320 sector_t dev_sectors; /* used size of
322 sector_t array_sectors; /* exported array size */
323 int external_size; /* size managed
325 __u64 events;
331 int can_decrease_events;
333 char uuid[16];
340 sector_t reshape_position;
341 int delta_disks, new_level, new_layout;
342 int new_chunk_sectors;
343 int reshape_backwards;
345 struct md_thread *thread; /* management thread */
346 struct md_thread *sync_thread; /* doing resync or reconstruct */
354 char *last_sync_action;
355 sector_t curr_resync; /* last block scheduled */
362 sector_t curr_resync_completed;
363 unsigned long resync_mark; /* a recent timestamp */
364 sector_t resync_mark_cnt;/* blocks written at resync_mark */
365 sector_t curr_mark_cnt; /* blocks scheduled now */
367 sector_t resync_max_sectors; /* may be set by personality */
369 atomic64_t resync_mismatches; /* count of sectors where
374 sector_t suspend_lo;
375 sector_t suspend_hi;
377 int sync_speed_min;
378 int sync_speed_max;
381 int parallel_resync;
383 int ok_start_degraded;
385 unsigned long recovery;
391 int recovery_disabled;
393 int in_sync; /* know to not need resync */
403 struct mutex open_mutex;
404 struct mutex reconfig_mutex;
405 atomic_t active; /* general refcount */
406 atomic_t openers; /* number of active opens */
408 int changed; /* True if we might need to
410 int degraded; /* whether md should consider
414 atomic_t recovery_active; /* blocks scheduled, but not written */
415 wait_queue_head_t recovery_wait;
416 sector_t recovery_cp;
417 sector_t resync_min; /* user requested sync
419 sector_t resync_max; /* resync should pause
422 struct kernfs_node *sysfs_state; /* handle for 'array_state'
425 struct kernfs_node *sysfs_action; /* handle for 'sync_action' */
426 struct kernfs_node *sysfs_completed; /*handle for 'sync_completed' */
427 struct kernfs_node *sysfs_degraded; /*handle for 'degraded' */
428 struct kernfs_node *sysfs_level; /*handle for 'level' */
430 struct work_struct del_work; /* used for delayed sysfs removal */
443 spinlock_t lock;
444 wait_queue_head_t sb_wait; /* for waiting on superblock updates */
445 atomic_t pending_writes; /* number of active superblock writes */
447 unsigned int safemode; /* if set, update "clean" superblock
450 unsigned int safemode_delay;
451 struct timer_list safemode_timer;
452 struct percpu_ref writes_pending;
453 int sync_checkers; /* # of threads checking writes_pending */
454 struct request_queue *queue; /* for plugging ... */
456 struct bitmap *bitmap; /* the bitmap for the device */
457 struct {
482 struct list_head all_mddevs; argument
503 void (*sync_super)(struct mddev *mddev, struct md_rdev *rdev); argument
504 struct md_cluster_info *cluster_info;
505 unsigned int good_device_nr; /* good device num within cluster raid */
506 unsigned int noio_flag; /* for memalloc scope API */
508 bool has_superblocks:1;
532 static inline int __must_check mddev_lock(struct mddev *mddev) in mddev_lock()
540 static inline void mddev_lock_nointr(struct mddev *mddev) in mddev_lock_nointr()
545 static inline int mddev_trylock(struct mddev *mddev) in mddev_trylock()
629 static inline char * mdname (struct mddev * mddev) in mdname()
634 static inline int sysfs_link_rdev(struct mddev *mddev, struct md_rdev *rdev) in sysfs_link_rdev()
646 static inline void sysfs_unlink_rdev(struct mddev *mddev, struct md_rdev *rdev) in sysfs_unlink_rdev()
667 #define rdev_for_each(rdev, mddev) \ argument
670 #define rdev_for_each_safe(rdev, tmp, mddev) \ argument
673 #define rdev_for_each_rcu(rdev, mddev) \ argument
678 struct mddev *mddev; member
770 static inline void rdev_dec_pending(struct md_rdev *rdev, struct mddev *mddev) in rdev_dec_pending()
780 static inline int mddev_is_clustered(struct mddev *mddev) in mddev_is_clustered()
786 static inline void mddev_clear_unsupported_flags(struct mddev *mddev, in mddev_clear_unsupported_flags()
792 static inline void mddev_check_writesame(struct mddev *mddev, struct bio *bio) in mddev_check_writesame()
799 static inline void mddev_check_write_zeroes(struct mddev *mddev, struct bio *bio) in mddev_check_write_zeroes()