Lines Matching refs:mddev
133 static inline bool raid1_add_bio_to_plug(struct mddev *mddev, struct bio *bio, in raid1_add_bio_to_plug() argument
143 if (!mddev->bitmap_ops->enabled(mddev)) { in raid1_add_bio_to_plug()
148 cb = blk_check_plugged(unplug, mddev, sizeof(*plug)); in raid1_add_bio_to_plug()
169 static inline void raid1_prepare_flush_writes(struct mddev *mddev) in raid1_prepare_flush_writes() argument
171 mddev->bitmap_ops->unplug(mddev, current->bio_list == NULL); in raid1_prepare_flush_writes()
179 static inline void check_decay_read_errors(struct mddev *mddev, struct md_rdev *rdev) in check_decay_read_errors() argument
209 static inline bool exceed_read_errors(struct mddev *mddev, struct md_rdev *rdev) in exceed_read_errors() argument
211 int max_read_errors = atomic_read(&mddev->max_corr_read_errors); in exceed_read_errors()
214 check_decay_read_errors(mddev, rdev); in exceed_read_errors()
218 mdname(mddev), rdev->bdev, read_errors, max_read_errors); in exceed_read_errors()
220 mdname(mddev), rdev->bdev); in exceed_read_errors()
221 md_error(mddev, rdev); in exceed_read_errors()
283 static inline bool raid1_should_read_first(struct mddev *mddev, in raid1_should_read_first() argument
286 if ((mddev->resync_offset < this_sector + len)) in raid1_should_read_first()
289 if (mddev_is_clustered(mddev) && in raid1_should_read_first()
290 mddev->cluster_ops->area_resyncing(mddev, READ, this_sector, in raid1_should_read_first()