if (test_bit(WriteMostly, &rdev->flags)) seq_printf(seq, "(W)"); 
static int md_seq_show(struct seq_file *seq, void *v){	mddev_t *mddev = v;	sector_t size;	struct list_head *tmp2;	mdk_rdev_t *rdev;	int i;	struct bitmap *bitmap;	if (v == (void*)1) {		seq_printf(seq, "Personalities : ");		spin_lock(&pers_lock);		for (i = 0; i < MAX_PERSONALITY; i++)			if (pers[i])				seq_printf(seq, "[%s] ", pers[i]->name);		spin_unlock(&pers_lock);		seq_printf(seq, "\n");		return 0;	}	if (v == (void*)2) {		status_unused(seq);		return 0;	}	if (mddev_lock(mddev)!=0) 		return -EINTR;	if (mddev->pers || mddev->raid_disks || !list_empty(&mddev->disks)) {		seq_printf(seq, "%s : %sactive", mdname(mddev),						mddev->pers ? "" : "in");		if (mddev->pers) {			if (mddev->ro)				seq_printf(seq, " (read-only)");			seq_printf(seq, " %s", mddev->pers->name);		}		size = 0;		ITERATE_RDEV(mddev,rdev,tmp2) {			char b[BDEVNAME_SIZE];			seq_printf(seq, " %s[%d]",				bdevname(rdev->bdev,b), rdev->desc_nr);			if (rdev->faulty) {				seq_printf(seq, "(F)");				continue;			}			size += rdev->size;		}		if (!list_empty(&mddev->disks)) {			if (mddev->pers)				seq_printf(seq, "\n      %llu blocks",					(unsigned long long)mddev->array_size);			else				seq_printf(seq, "\n      %llu blocks",					(unsigned long long)size);		}		if (mddev->pers) {			mddev->pers->status (seq, mddev);	 		seq_printf(seq, "\n      ");			if (mddev->curr_resync > 2) {				status_resync (seq, mddev);				seq_printf(seq, "\n      ");			} else if (mddev->curr_resync == 1 || mddev->curr_resync == 2)				seq_printf(seq, "	resync=DELAYED\n      ");		} else			seq_printf(seq, "\n       ");		if ((bitmap = mddev->bitmap)) {			unsigned long chunk_kb;			unsigned long flags;			spin_lock_irqsave(&bitmap->lock, flags);			chunk_kb = bitmap->chunksize >> 10;			seq_printf(seq, "bitmap: %lu/%lu pages [%luKB], "				"%lu%s chunk",				bitmap->pages - bitmap->missing_pages,				bitmap->pages,				(bitmap->pages - bitmap->missing_pages)					<< (PAGE_SHIFT - 10),				chunk_kb ? chunk_kb : bitmap->chunksize,				chunk_kb ? "KB" : "B");			if (bitmap->file) {				seq_printf(seq, ", file: ");				seq_path(seq, bitmap->file->f_vfsmnt,					 bitmap->file->f_dentry," \t\n");			}			seq_printf(seq, "\n");			spin_unlock_irqrestore(&bitmap->lock, flags);		}		seq_printf(seq, "\n");	}	mddev_unlock(mddev);		return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8ddf9efe6708f3674f0ddfeb6425fd27bea109a2/md.c/clean/drivers/md/md.c