• Home
  • Raw
  • Download

Lines Matching refs:lb

445 static void finish_range(struct list_blocks_struct *lb)  in finish_range()  argument
447 if (lb->first_block == 0) in finish_range()
449 if (lb->first) in finish_range()
450 lb->first = 0; in finish_range()
452 fprintf(lb->f, ", "); in finish_range()
453 if (lb->first_block == lb->last_block) in finish_range()
454 fprintf(lb->f, "(%lld):%llu", in finish_range()
455 (long long)lb->first_bcnt, lb->first_block); in finish_range()
457 fprintf(lb->f, "(%lld-%lld):%llu-%llu", in finish_range()
458 (long long)lb->first_bcnt, (long long)lb->last_bcnt, in finish_range()
459 lb->first_block, lb->last_block); in finish_range()
460 lb->first_block = 0; in finish_range()
469 struct list_blocks_struct *lb = (struct list_blocks_struct *) private; in list_blocks_proc() local
471 lb->total++; in list_blocks_proc()
476 if (lb->first_block && in list_blocks_proc()
477 (lb->last_block+1 == *blocknr) && in list_blocks_proc()
478 (lb->last_bcnt+1 == blockcnt)) { in list_blocks_proc()
479 lb->last_block = *blocknr; in list_blocks_proc()
480 lb->last_bcnt = blockcnt; in list_blocks_proc()
486 finish_range(lb); in list_blocks_proc()
487 lb->first_block = lb->last_block = *blocknr; in list_blocks_proc()
488 lb->first_bcnt = lb->last_bcnt = blockcnt; in list_blocks_proc()
494 finish_range(lb); in list_blocks_proc()
495 if (lb->first) in list_blocks_proc()
496 lb->first = 0; in list_blocks_proc()
498 fprintf(lb->f, ", "); in list_blocks_proc()
500 fprintf(lb->f, "(IND):%llu", (unsigned long long) *blocknr); in list_blocks_proc()
502 fprintf(lb->f, "(DIND):%llu", (unsigned long long) *blocknr); in list_blocks_proc()
504 fprintf(lb->f, "(TIND):%llu", (unsigned long long) *blocknr); in list_blocks_proc()
578 struct list_blocks_struct lb; in dump_blocks() local
581 lb.total = 0; in dump_blocks()
582 lb.first_block = 0; in dump_blocks()
583 lb.f = f; in dump_blocks()
584 lb.first = 1; in dump_blocks()
586 list_blocks_proc, (void *)&lb); in dump_blocks()
587 finish_range(&lb); in dump_blocks()
588 if (lb.total) in dump_blocks()
589 fprintf(f, "\n%sTOTAL: %lld\n", prefix, (long long)lb.total); in dump_blocks()