Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

md/faulty: remove typedef: conf_t -> struct faulty_conf

Signed-off-by: NeilBrown <neilb@suse.de>

NeilBrown 8f1ae43d a7120771

+10 -10
+10 -10
drivers/md/faulty.c
··· 81 81 bio_io_error(b); 82 82 } 83 83 84 - typedef struct faulty_conf { 84 + struct faulty_conf { 85 85 int period[Modes]; 86 86 atomic_t counters[Modes]; 87 87 sector_t faults[MaxFault]; 88 88 int modes[MaxFault]; 89 89 int nfaults; 90 90 struct md_rdev *rdev; 91 - } conf_t; 91 + }; 92 92 93 - static int check_mode(conf_t *conf, int mode) 93 + static int check_mode(struct faulty_conf *conf, int mode) 94 94 { 95 95 if (conf->period[mode] == 0 && 96 96 atomic_read(&conf->counters[mode]) <= 0) ··· 105 105 return 0; 106 106 } 107 107 108 - static int check_sector(conf_t *conf, sector_t start, sector_t end, int dir) 108 + static int check_sector(struct faulty_conf *conf, sector_t start, sector_t end, int dir) 109 109 { 110 110 /* If we find a ReadFixable sector, we fix it ... */ 111 111 int i; ··· 129 129 return 0; 130 130 } 131 131 132 - static void add_sector(conf_t *conf, sector_t start, int mode) 132 + static void add_sector(struct faulty_conf *conf, sector_t start, int mode) 133 133 { 134 134 int i; 135 135 int n = conf->nfaults; ··· 171 171 172 172 static int make_request(struct mddev *mddev, struct bio *bio) 173 173 { 174 - conf_t *conf = mddev->private; 174 + struct faulty_conf *conf = mddev->private; 175 175 int failit = 0; 176 176 177 177 if (bio_data_dir(bio) == WRITE) { ··· 224 224 225 225 static void status(struct seq_file *seq, struct mddev *mddev) 226 226 { 227 - conf_t *conf = mddev->private; 227 + struct faulty_conf *conf = mddev->private; 228 228 int n; 229 229 230 230 if ((n=atomic_read(&conf->counters[WriteTransient])) != 0) ··· 259 259 { 260 260 int mode = mddev->new_layout & ModeMask; 261 261 int count = mddev->new_layout >> ModeShift; 262 - conf_t *conf = mddev->private; 262 + struct faulty_conf *conf = mddev->private; 263 263 264 264 if (mddev->new_layout < 0) 265 265 return 0; ··· 299 299 { 300 300 struct md_rdev *rdev; 301 301 int i; 302 - conf_t *conf; 302 + struct faulty_conf *conf; 303 303 304 304 if (md_check_no_bitmap(mddev)) 305 305 return -EINVAL; ··· 327 327 328 328 static int stop(struct mddev *mddev) 329 329 { 330 - conf_t *conf = mddev->private; 330 + struct faulty_conf *conf = mddev->private; 331 331 332 332 kfree(conf); 333 333 mddev->private = NULL;