Lines Matching refs:stripe

601 	int stripe;  in bcache_dev_sectors_dirty_add()  local
606 stripe = offset_to_stripe(d, offset); in bcache_dev_sectors_dirty_add()
607 if (stripe < 0) in bcache_dev_sectors_dirty_add()
622 if (stripe >= d->nr_stripes) in bcache_dev_sectors_dirty_add()
626 d->stripe_sectors_dirty + stripe); in bcache_dev_sectors_dirty_add()
628 if (!test_bit(stripe, d->full_dirty_stripes)) in bcache_dev_sectors_dirty_add()
629 set_bit(stripe, d->full_dirty_stripes); in bcache_dev_sectors_dirty_add()
631 if (test_bit(stripe, d->full_dirty_stripes)) in bcache_dev_sectors_dirty_add()
632 clear_bit(stripe, d->full_dirty_stripes); in bcache_dev_sectors_dirty_add()
637 stripe++; in bcache_dev_sectors_dirty_add()
656 int stripe; in refill_full_stripes() local
659 stripe = offset_to_stripe(&dc->disk, KEY_OFFSET(&buf->last_scanned)); in refill_full_stripes()
660 if (stripe < 0) in refill_full_stripes()
661 stripe = 0; in refill_full_stripes()
663 start_stripe = stripe; in refill_full_stripes()
666 stripe = find_next_bit(dc->disk.full_dirty_stripes, in refill_full_stripes()
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()
676 stripe * dc->disk.stripe_size, 0); in refill_full_stripes()
686 stripe = next_stripe; in refill_full_stripes()
688 if (wrapped && stripe > start_stripe) in refill_full_stripes()
691 if (stripe == dc->disk.nr_stripes) { in refill_full_stripes()
692 stripe = 0; in refill_full_stripes()