Lines Matching refs:sectors
182 unsigned bytes, sectors, offset_into_extent;
203 sectors = k.k->size - offset_into_extent;
214 sectors = min(sectors, k.k->size - offset_into_extent);
217 ret = readpage_bio_extend(trans, readpages_iter, &rbio->bio, sectors,
223 bytes = min(sectors, bio_sectors(&rbio->bio)) << 9;
435 * racing with fallocate can cause us to add fewer sectors than
436 * expected - but we shouldn't add more sectors than expected:
591 unsigned sectors = 0, dirty_sectors = 0, reserved_sectors = 0;
601 while (offset + sectors < f_sectors &&
602 w->tmp[offset + sectors].state >= SECTOR_dirty) {
603 reserved_sectors += w->tmp[offset + sectors].replicas_reserved;
604 dirty_sectors += w->tmp[offset + sectors].state == SECTOR_dirty;
605 sectors++;
607 BUG_ON(!sectors);
613 bch_io_full(w->io, sectors << 9) ||
625 sectors << 9, offset << 9));
636 w->io->op.res.sectors += reserved_sectors;
640 offset += sectors;