Lines Matching refs:mddev
173 static void make_request(struct mddev *mddev, struct bio *bio) in make_request() argument
175 struct faulty_conf *conf = mddev->private; in make_request()
217 struct bio *b = bio_clone_mddev(bio, GFP_NOIO, mddev); in make_request()
229 static void status(struct seq_file *seq, struct mddev *mddev) in status() argument
231 struct faulty_conf *conf = mddev->private; in status()
262 static int reshape(struct mddev *mddev) in reshape() argument
264 int mode = mddev->new_layout & ModeMask; in reshape()
265 int count = mddev->new_layout >> ModeShift; in reshape()
266 struct faulty_conf *conf = mddev->private; in reshape()
268 if (mddev->new_layout < 0) in reshape()
286 mddev->new_layout = -1; in reshape()
287 mddev->layout = -1; /* makes sure further changes come through */ in reshape()
291 static sector_t faulty_size(struct mddev *mddev, sector_t sectors, int raid_disks) in faulty_size() argument
297 return mddev->dev_sectors; in faulty_size()
302 static int run(struct mddev *mddev) in run() argument
308 if (md_check_no_bitmap(mddev)) in run()
321 rdev_for_each(rdev, mddev) { in run()
323 disk_stack_limits(mddev->gendisk, rdev->bdev, in run()
327 md_set_array_sectors(mddev, faulty_size(mddev, 0, 0)); in run()
328 mddev->private = conf; in run()
330 reshape(mddev); in run()
335 static void faulty_free(struct mddev *mddev, void *priv) in faulty_free() argument