Lines Matching refs:mddev
128 static inline bool raid1_add_bio_to_plug(struct mddev *mddev, struct bio *bio, in raid1_add_bio_to_plug() argument
138 if (!md_bitmap_enabled(mddev, true)) { in raid1_add_bio_to_plug()
143 cb = blk_check_plugged(unplug, mddev, sizeof(*plug)); in raid1_add_bio_to_plug()
164 static inline void raid1_prepare_flush_writes(struct mddev *mddev) in raid1_prepare_flush_writes() argument
166 mddev->bitmap_ops->unplug(mddev, current->bio_list == NULL); in raid1_prepare_flush_writes()
174 static inline void check_decay_read_errors(struct mddev *mddev, struct md_rdev *rdev) in check_decay_read_errors() argument
204 static inline bool exceed_read_errors(struct mddev *mddev, struct md_rdev *rdev) in exceed_read_errors() argument
206 int max_read_errors = atomic_read(&mddev->max_corr_read_errors); in exceed_read_errors()
209 check_decay_read_errors(mddev, rdev); in exceed_read_errors()
213 mdname(mddev), rdev->bdev, read_errors, max_read_errors); in exceed_read_errors()
215 mdname(mddev), rdev->bdev); in exceed_read_errors()
216 md_error(mddev, rdev); in exceed_read_errors()
278 static inline bool raid1_should_read_first(struct mddev *mddev, in raid1_should_read_first() argument
281 if ((mddev->resync_offset < this_sector + len)) in raid1_should_read_first()
284 if (mddev_is_clustered(mddev) && in raid1_should_read_first()
285 mddev->cluster_ops->area_resyncing(mddev, READ, this_sector, in raid1_should_read_first()