Lines Matching refs:mddev
133 static inline bool raid1_add_bio_to_plug(struct mddev *mddev, struct bio *bio,
143 if (!md_bitmap_enabled(mddev->bitmap)) {
148 cb = blk_check_plugged(unplug, mddev, sizeof(*plug));
182 static inline void check_decay_read_errors(struct mddev *mddev, struct md_rdev *rdev)
212 static inline bool exceed_read_errors(struct mddev *mddev, struct md_rdev *rdev)
214 int max_read_errors = atomic_read(&mddev->max_corr_read_errors);
217 check_decay_read_errors(mddev, rdev);
221 mdname(mddev), rdev->bdev, read_errors, max_read_errors);
223 mdname(mddev), rdev->bdev);
224 md_error(mddev, rdev);
286 static inline bool raid1_should_read_first(struct mddev *mddev,
289 if ((mddev->recovery_cp < this_sector + len))
292 if (mddev_is_clustered(mddev) &&
293 md_cluster_ops->area_resyncing(mddev, READ, this_sector,