Searched refs:nr_stripes (Results 1 – 6 of 6) sorted by relevance
53 for (i = 0; i < d->nr_stripes; i++) in bcache_dev_sectors_dirty()65 if (unlikely(offset >= d->nr_stripes)) { in offset_to_stripe()67 offset, d->nr_stripes); in offset_to_stripe()
583 if (stripe >= d->nr_stripes) in bcache_dev_sectors_dirty_add()625 dc->disk.nr_stripes, stripe); in refill_full_stripes()627 if (stripe == dc->disk.nr_stripes) in refill_full_stripes()631 dc->disk.nr_stripes, stripe); in refill_full_stripes()649 if (stripe == dc->disk.nr_stripes) { in refill_full_stripes()
267 int nr_stripes; member
919 d->nr_stripes = n; in bcache_device_init()921 n = d->nr_stripes * sizeof(atomic_t); in bcache_device_init()926 n = BITS_TO_LONGS(d->nr_stripes) * sizeof(unsigned long); in bcache_device_init()
1538 uint32_t nr_stripes = rs->stripe_cache_entries; in rs_set_raid456_stripe_cache() local1545 if (nr_stripes < min_stripes) { in rs_set_raid456_stripe_cache()1547 nr_stripes, min_stripes); in rs_set_raid456_stripe_cache()1548 nr_stripes = min_stripes; in rs_set_raid456_stripe_cache()1558 if (conf->min_nr_stripes != nr_stripes) { in rs_set_raid456_stripe_cache()1559 r = raid5_set_cache_size(mddev, nr_stripes); in rs_set_raid456_stripe_cache()1565 DMINFO("%u stripe cache entries", nr_stripes); in rs_set_raid456_stripe_cache()
954 static unsigned long rbio_nr_pages(unsigned long stripe_len, int nr_stripes) in rbio_nr_pages() argument956 return DIV_ROUND_UP(stripe_len, PAGE_SIZE) * nr_stripes; in rbio_nr_pages()