Home
last modified time | relevance | path

Searched refs:nr_stripes (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/md/bcache/
H A Dwriteback.h53 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()
H A Dwriteback.c622 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()
H A Dbcache.h268 int nr_stripes; member
H A Dsuper.c931 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()
/linux/fs/btrfs/
H A Dscrub.c1811 unsigned int nr_stripes) in submit_initial_group_read() argument
1816 ASSERT(first_slot + nr_stripes <= SCRUB_TOTAL_STRIPES); in submit_initial_group_read()
1819 btrfs_stripe_nr_to_offset(nr_stripes)); in submit_initial_group_read()
1821 for (int i = 0; i < nr_stripes; i++) { in submit_initial_group_read()
1835 const int nr_stripes = sctx->cur_stripe; in flush_scrub_stripes() local
1838 if (!nr_stripes) in flush_scrub_stripes()
1844 if (nr_stripes % SCRUB_STRIPES_PER_GROUP) { in flush_scrub_stripes()
1845 const int first_slot = round_down(nr_stripes, SCRUB_STRIPES_PER_GROUP); in flush_scrub_stripes()
1847 submit_initial_group_read(sctx, first_slot, nr_stripes - first_slot); in flush_scrub_stripes()
1850 for (int i = 0; i < nr_stripes; i++) { in flush_scrub_stripes()
[all …]
/linux/drivers/md/
H A Ddm-raid.c1547 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()
H A Dmd.h986 void mddev_update_io_opt(struct mddev *mddev, unsigned int nr_stripes);
H A Dmd.c5800 void mddev_update_io_opt(struct mddev *mddev, unsigned int nr_stripes) in mddev_update_io_opt() argument
5811 lim.io_opt = lim.io_min * nr_stripes; in mddev_update_io_opt()