Searched refs:eavailable (Results 1 – 1 of 1) sorted by relevance
1339 unsigned int eblocks, eavailable, bad_blocks, spare_cnt; in mtdswap_add_mtd() local1392 eavailable = eblocks - bad_blocks; in mtdswap_add_mtd()1394 if (eavailable < MIN_ERASE_BLOCKS) { in mtdswap_add_mtd()1396 "%d needed\n", MTDSWAP_PREFIX, eavailable, in mtdswap_add_mtd()1401 spare_cnt = div_u64((uint64_t)eavailable * spare_eblocks, 100); in mtdswap_add_mtd()1406 if (spare_cnt > eavailable - 1) in mtdswap_add_mtd()1407 spare_cnt = eavailable - 1; in mtdswap_add_mtd()1409 swap_size = (uint64_t)(eavailable - spare_cnt) * mtd->erasesize + in mtdswap_add_mtd()