Searched refs:nr_stripes (Results 1 – 6 of 6) sorted by relevance
49 for (i = 0; i < d->nr_stripes; i++) in bcache_dev_sectors_dirty()61 if (unlikely(offset >= d->nr_stripes)) { in offset_to_stripe()63 offset, d->nr_stripes); in offset_to_stripe()
577 if (stripe >= d->nr_stripes) in bcache_dev_sectors_dirty_add()619 dc->disk.nr_stripes, stripe); in refill_full_stripes()621 if (stripe == dc->disk.nr_stripes) in refill_full_stripes()625 dc->disk.nr_stripes, stripe); in refill_full_stripes()643 if (stripe == dc->disk.nr_stripes) { in refill_full_stripes()
267 int nr_stripes; member
927 d->nr_stripes = n; in bcache_device_init()929 n = d->nr_stripes * sizeof(atomic_t); in bcache_device_init()934 n = BITS_TO_LONGS(d->nr_stripes) * sizeof(unsigned long); in bcache_device_init()
1541 uint32_t nr_stripes = rs->stripe_cache_entries; in rs_set_raid456_stripe_cache() local1548 if (nr_stripes < min_stripes) { in rs_set_raid456_stripe_cache()1550 nr_stripes, min_stripes); in rs_set_raid456_stripe_cache()1551 nr_stripes = min_stripes; in rs_set_raid456_stripe_cache()1561 if (conf->min_nr_stripes != nr_stripes) { in rs_set_raid456_stripe_cache()1562 r = raid5_set_cache_size(mddev, nr_stripes); in rs_set_raid456_stripe_cache()1568 DMINFO("%u stripe cache entries", nr_stripes); in rs_set_raid456_stripe_cache()
971 static unsigned long rbio_nr_pages(unsigned long stripe_len, int nr_stripes) in rbio_nr_pages() argument973 return DIV_ROUND_UP(stripe_len, PAGE_SIZE) * nr_stripes; in rbio_nr_pages()