• Home
  • Raw
  • Download

Lines Matching refs:blk

114 						 blk64_t blk, int pos)  in insert_refcount_el()  argument
145 el->ea_blk = blk; in insert_refcount_el()
156 blk64_t blk, int create) in get_refcount_el() argument
166 (blk > refcount->list[high].ea_blk))) { in get_refcount_el()
170 return insert_refcount_el(refcount, blk, in get_refcount_el()
178 if (blk == refcount->list[refcount->cursor].ea_blk) in get_refcount_el()
181 printf("Non-cursor get_refcount_el: %u\n", blk); in get_refcount_el()
185 if (blk == refcount->list[mid].ea_blk) { in get_refcount_el()
189 if (blk < refcount->list[mid].ea_blk) in get_refcount_el()
204 return insert_refcount_el(refcount, blk, low); in get_refcount_el()
209 errcode_t ea_refcount_fetch(ext2_refcount_t refcount, blk64_t blk, in ea_refcount_fetch() argument
214 el = get_refcount_el(refcount, blk, 0); in ea_refcount_fetch()
223 errcode_t ea_refcount_increment(ext2_refcount_t refcount, blk64_t blk, int *ret) in ea_refcount_increment() argument
227 el = get_refcount_el(refcount, blk, 1); in ea_refcount_increment()
237 errcode_t ea_refcount_decrement(ext2_refcount_t refcount, blk64_t blk, int *ret) in ea_refcount_decrement() argument
241 el = get_refcount_el(refcount, blk, 0); in ea_refcount_decrement()
252 errcode_t ea_refcount_store(ext2_refcount_t refcount, blk64_t blk, int count) in ea_refcount_store() argument
259 el = get_refcount_el(refcount, blk, count ? 1 : 0); in ea_refcount_store()
374 blk64_t blk; in main() local
398 blk = (blk_t) bcode_program[i++]; in main()
400 printf("Storing blk %llu with value %d\n", blk, arg); in main()
401 retval = ea_refcount_store(refcount, blk, arg); in main()
404 "while storing blk %llu", blk); in main()
407 blk = (blk_t) bcode_program[i++]; in main()
408 retval = ea_refcount_fetch(refcount, blk, &arg); in main()
411 "while fetching blk %llu", blk); in main()
414 blk, arg); in main()
417 blk = (blk_t) bcode_program[i++]; in main()
418 retval = ea_refcount_increment(refcount, blk, &arg); in main()
421 "while incrementing blk %llu", blk); in main()
424 blk, arg); in main()
427 blk = (blk_t) bcode_program[i++]; in main()
428 retval = ea_refcount_decrement(refcount, blk, &arg); in main()
431 "while decrementing blk %llu", blk); in main()
434 blk, arg); in main()
447 blk = ea_refcount_intr_next(refcount, &arg); in main()
448 if (!blk) in main()
450 printf("\tblk=%llu, count=%d\n", blk, arg); in main()