Lines Matching refs:index
85 int index;
598 sbio->index = i;
2159 int index;
2175 for (index = 0; len > 0; index++) {
2188 BUG_ON(index >= SCRUB_MAX_PAGES_PER_BLOCK);
2190 sblock->pagev[index] = spage;
2223 for (index = 0; index < sblock->page_count; index++) {
2224 struct scrub_page *spage = sblock->pagev[index];
2284 sctx->first_free = sbio->index;
2370 unsigned long index;
2389 index = div_u64(logical - sum->bytenr, sctx->fs_info->sectorsize);
2390 ASSERT(index < UINT_MAX);
2393 memcpy(csum, sum->sums + index * sctx->csum_size, sctx->csum_size);
2394 if (index == num_sectors - 1) {
2464 int index;
2482 for (index = 0; len > 0; index++) {
2495 BUG_ON(index >= SCRUB_MAX_PAGES_PER_BLOCK);
2498 sblock->pagev[index] = spage;
2525 for (index = 0; index < sblock->page_count; index++) {
2526 struct scrub_page *spage = sblock->pagev[index];