Home
last modified time | relevance | path

Searched refs:nr_stripes (Results 1 - 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/drivers/md/bcache/
H A Dwriteback.h49 for (i = 0; i < d->nr_stripes; i++) in bcache_dev_sectors_dirty()
60 /* d->nr_stripes is in range [1, INT_MAX] */ in offset_to_stripe()
61 if (unlikely(offset >= d->nr_stripes)) { in offset_to_stripe()
62 pr_err("Invalid stripe %llu (>= nr_stripes %d).\n", in offset_to_stripe()
63 offset, d->nr_stripes); in offset_to_stripe()
H A Dwriteback.c577 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()
H A Dbcache.h267 int nr_stripes; member
H A Dsuper.c925 pr_err("nr_stripes too large or invalid: %llu (start sector beyond end of disk?)\n", in bcache_device_init()
929 d->nr_stripes = n; in bcache_device_init()
931 n = d->nr_stripes * sizeof(atomic_t); in bcache_device_init()
936 n = BITS_TO_LONGS(d->nr_stripes) * sizeof(unsigned long); in bcache_device_init()
/kernel/linux/linux-6.6/drivers/md/bcache/
H A Dwriteback.h53 for (i = 0; i < d->nr_stripes; i++) in bcache_dev_sectors_dirty()
64 /* d->nr_stripes is in range [1, INT_MAX] */ in offset_to_stripe()
65 if (unlikely(offset >= d->nr_stripes)) { in offset_to_stripe()
66 pr_err("Invalid stripe %llu (>= nr_stripes %d).\n", 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.h267 int nr_stripes; member
H A Dsuper.c913 pr_err("nr_stripes too large or invalid: %llu (start sector beyond end of disk?)\n", in bcache_device_init()
917 d->nr_stripes = n; in bcache_device_init()
919 n = d->nr_stripes * sizeof(atomic_t); in bcache_device_init()
924 n = BITS_TO_LONGS(d->nr_stripes) * sizeof(unsigned long); in bcache_device_init()
/kernel/linux/linux-6.6/fs/btrfs/
H A Dscrub.c1714 unsigned int nr_stripes) in submit_initial_group_read()
1719 ASSERT(first_slot + nr_stripes <= SCRUB_TOTAL_STRIPES); in submit_initial_group_read()
1722 btrfs_stripe_nr_to_offset(nr_stripes)); in submit_initial_group_read()
1724 for (int i = 0; i < nr_stripes; i++) { in submit_initial_group_read()
1738 const int nr_stripes = sctx->cur_stripe; in flush_scrub_stripes() local
1741 if (!nr_stripes) in flush_scrub_stripes()
1747 if (nr_stripes % SCRUB_STRIPES_PER_GROUP) { in flush_scrub_stripes()
1748 const int first_slot = round_down(nr_stripes, SCRUB_STRIPES_PER_GROUP); in flush_scrub_stripes()
1750 submit_initial_group_read(sctx, first_slot, nr_stripes - first_slot); in flush_scrub_stripes()
1753 for (int i = 0; i < nr_stripes; in flush_scrub_stripes()
1712 submit_initial_group_read(struct scrub_ctx *sctx, unsigned int first_slot, unsigned int nr_stripes) submit_initial_group_read() argument
[all...]
/kernel/linux/linux-5.10/drivers/md/
H A Ddm-raid.c1541 uint32_t nr_stripes = rs->stripe_cache_entries; in rs_set_raid456_stripe_cache() local
1548 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()
/kernel/linux/linux-6.6/drivers/md/
H A Ddm-raid.c1541 uint32_t nr_stripes = rs->stripe_cache_entries; in rs_set_raid456_stripe_cache() local
1548 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()
/kernel/linux/linux-5.10/fs/btrfs/
H A Draid56.c971 static unsigned long rbio_nr_pages(unsigned long stripe_len, int nr_stripes) in rbio_nr_pages() argument
973 return DIV_ROUND_UP(stripe_len, PAGE_SIZE) * nr_stripes; in rbio_nr_pages()

Completed in 32 milliseconds