Searched refs:nr_stripes (Results 1 – 5 of 5) 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()
268 int nr_stripes; member
931 d->nr_stripes = n; in bcache_device_init()933 n = d->nr_stripes * sizeof(atomic_t); in bcache_device_init()938 n = BITS_TO_LONGS(d->nr_stripes) * sizeof(unsigned long); in bcache_device_init()
1815 unsigned int nr_stripes) in submit_initial_group_read() argument1820 ASSERT(first_slot + nr_stripes <= SCRUB_TOTAL_STRIPES); in submit_initial_group_read()1823 btrfs_stripe_nr_to_offset(nr_stripes)); in submit_initial_group_read()1825 for (int i = 0; i < nr_stripes; i++) { in submit_initial_group_read()1839 const int nr_stripes = sctx->cur_stripe; in flush_scrub_stripes() local1842 if (!nr_stripes) in flush_scrub_stripes()1848 if (nr_stripes % SCRUB_STRIPES_PER_GROUP) { in flush_scrub_stripes()1849 const int first_slot = round_down(nr_stripes, SCRUB_STRIPES_PER_GROUP); in flush_scrub_stripes()1851 submit_initial_group_read(sctx, first_slot, nr_stripes - first_slot); in flush_scrub_stripes()1854 for (int i = 0; i < nr_stripes; i++) { in flush_scrub_stripes()[all …]
1547 uint32_t nr_stripes = rs->stripe_cache_entries; in rs_set_raid456_stripe_cache() local 1554 if (nr_stripes < min_stripes) { in rs_set_raid456_stripe_cache() 1556 nr_stripes, min_stripes); in rs_set_raid456_stripe_cache() 1557 nr_stripes = min_stripes; in rs_set_raid456_stripe_cache() 1567 if (conf->min_nr_stripes != nr_stripes) { in rs_set_raid456_stripe_cache() 1568 r = raid5_set_cache_size(mddev, nr_stripes); in rs_set_raid456_stripe_cache() 1574 DMINFO("%u stripe cache entries", nr_stripes); in rs_set_raid456_stripe_cache()