Searched refs:reserved_sectors (Results 1 – 2 of 2) sorted by relevance
2500 u64 capacity = 0, reserved_sectors = 0, gc_reserve; in bch2_recalc_capacity() local2546 reserved_sectors += dev_reserve * 2; in bch2_recalc_capacity()2556 reserved_sectors = max(gc_reserve, reserved_sectors); in bch2_recalc_capacity()2558 reserved_sectors = min(reserved_sectors, capacity); in bch2_recalc_capacity()2560 c->reserved = reserved_sectors; in bch2_recalc_capacity()2561 c->capacity = capacity - reserved_sectors; in bch2_recalc_capacity()
617 unsigned sectors = 0, dirty_sectors = 0, reserved_sectors = 0; in __bch2_writepage() local629 reserved_sectors += w->tmp[offset + sectors].replicas_reserved; in __bch2_writepage()653 w->io->op.res.sectors += reserved_sectors; in __bch2_writepage()