Lines Matching refs:freeb
13 uint32_t calculate_blocks(uint32_t freeb, uint32_t B) in calculate_blocks() argument
17 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()
130 uint32_t freeb = sbuf.f_bfree; in writing_test() local
132 uint32_t available_blocks = calculate_blocks(freeb, bsize / sizeof(uint32_t)); in writing_test()