Lines Matching refs:dir_u

504     struct direntry_uarea * dir_u = vi->vi_uarea;  in direntry_create_vi()  local
515 dir_u->flags = 0; in direntry_create_vi()
517 dir_u->flags |= DIRENTRY_VI_FIRST_DIRENTRY_ITEM; in direntry_create_vi()
523 dir_u->entry_count = ih_entry_count (vi->vi_ih) + in direntry_create_vi()
527 for (i = 0; i < dir_u->entry_count; i ++) { in direntry_create_vi()
529 dir_u->entry_sizes[i] = (j ? deh_location( &(deh[j - 1]) ) : in direntry_create_vi()
534 size += (dir_u->entry_count * sizeof (short)); in direntry_create_vi()
538 dir_u->entry_sizes[vn->vn_pos_in_item] = insert_size; in direntry_create_vi()
547 for (k = 0; k < dir_u->entry_count; k ++) in direntry_create_vi()
548 l += dir_u->entry_sizes[k]; in direntry_create_vi()
573 struct direntry_uarea * dir_u = vi->vi_uarea; in direntry_check_left() local
575 for (i = start_skip; i < dir_u->entry_count - end_skip; i ++) { in direntry_check_left()
576 if (dir_u->entry_sizes[i] > free) in direntry_check_left()
580 free -= dir_u->entry_sizes[i]; in direntry_check_left()
584 if (entries == dir_u->entry_count) { in direntry_check_left()
585 printk ("free spze %d, entry_count %d\n", free, dir_u->entry_count); in direntry_check_left()
590 if (start_skip == 0 && (dir_u->flags & DIRENTRY_VI_FIRST_DIRENTRY_ITEM) && entries < 2) in direntry_check_left()
601 struct direntry_uarea * dir_u = vi->vi_uarea; in direntry_check_right() local
603 for (i = dir_u->entry_count - 1; i >= 0; i --) { in direntry_check_right()
604 if (dir_u->entry_sizes[i] > free) in direntry_check_right()
608 free -= dir_u->entry_sizes[i]; in direntry_check_right()
611 if (entries == dir_u->entry_count) in direntry_check_right()
615 if ((dir_u->flags & DIRENTRY_VI_FIRST_DIRENTRY_ITEM) && entries > dir_u->entry_count - 2) in direntry_check_right()
616 entries = dir_u->entry_count - 2; in direntry_check_right()
627 struct direntry_uarea * dir_u = vi->vi_uarea; in direntry_part_size() local
633 from = dir_u->entry_count - count; in direntry_part_size()
637 retval += dir_u->entry_sizes[i]; in direntry_part_size()
644 struct direntry_uarea * dir_u = vi->vi_uarea; in direntry_unit_num() local
646 return dir_u->entry_count; in direntry_unit_num()
654 struct direntry_uarea * dir_u = vi->vi_uarea; in direntry_print_vi() local
657 vi->vi_index, vi->vi_type, vi->vi_ih, dir_u->flags); in direntry_print_vi()
658 printk ("%d entries: ", dir_u->entry_count); in direntry_print_vi()
659 for (i = 0; i < dir_u->entry_count; i ++) in direntry_print_vi()
660 printk ("%d ", dir_u->entry_sizes[i]); in direntry_print_vi()