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()
622 if (stripe >= d->nr_stripes) in bcache_dev_sectors_dirty_add()667 dc->disk.nr_stripes, stripe); in refill_full_stripes()669 if (stripe == dc->disk.nr_stripes) in refill_full_stripes()673 dc->disk.nr_stripes, stripe); in refill_full_stripes()691 if (stripe == dc->disk.nr_stripes) { in refill_full_stripes()
267 int nr_stripes; member
915 d->nr_stripes = n; in bcache_device_init()917 n = d->nr_stripes * sizeof(atomic_t); in bcache_device_init()922 n = BITS_TO_LONGS(d->nr_stripes) * sizeof(unsigned long); in bcache_device_init()
1699 unsigned int nr_stripes) in submit_initial_group_read() argument1704 ASSERT(first_slot + nr_stripes <= SCRUB_TOTAL_STRIPES); in submit_initial_group_read()1707 btrfs_stripe_nr_to_offset(nr_stripes)); in submit_initial_group_read()1709 for (int i = 0; i < nr_stripes; i++) { in submit_initial_group_read()1723 const int nr_stripes = sctx->cur_stripe; in flush_scrub_stripes() local1726 if (!nr_stripes) in flush_scrub_stripes()1732 if (nr_stripes % SCRUB_STRIPES_PER_GROUP) { in flush_scrub_stripes()1733 const int first_slot = round_down(nr_stripes, SCRUB_STRIPES_PER_GROUP); in flush_scrub_stripes()1735 submit_initial_group_read(sctx, first_slot, nr_stripes - first_slot); in flush_scrub_stripes()1738 for (int i = 0; i < nr_stripes; i++) { in flush_scrub_stripes()[all …]
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()