Searched refs:freeb (Results 1 – 1 of 1) sorted by relevance
13 uint32_t calculate_blocks(uint32_t freeb, uint32_t B) in calculate_blocks() argument17 if (freeb <= 12) { in calculate_blocks()18 return freeb; in calculate_blocks()22 freeb -= 12 + 1; /* direct blocks + top block of first level table */ in calculate_blocks()24 if (freeb <= B) { in calculate_blocks()25 return blocks + freeb; in calculate_blocks()29 freeb -= B + 1; /* 1st level blocks + top block of second level table */ in calculate_blocks()31 if (freeb <= B * (B + 1)) { in calculate_blocks()32 uint32_t n = freeb / (B + 1); in calculate_blocks()33 uint32_t r = freeb % (B + 1); in calculate_blocks()[all …]