Lines Matching refs:num_used
1214 int num_used = le16_to_cpu(entry_list->de_num_used); in ocfs2_dx_list_remove_entry() local
1216 if (num_used == 1 || index == (num_used - 1)) in ocfs2_dx_list_remove_entry()
1221 (num_used - index - 1)*sizeof(struct ocfs2_dx_entry)); in ocfs2_dx_list_remove_entry()
1223 num_used--; in ocfs2_dx_list_remove_entry()
1224 memset(&entry_list->de_entries[num_used], 0, in ocfs2_dx_list_remove_entry()
1226 entry_list->de_num_used = cpu_to_le16(num_used); in ocfs2_dx_list_remove_entry()
3543 int i, num_used = le16_to_cpu(dl_list->de_num_used); in ocfs2_dx_dir_find_leaf_split() local
3608 for (i = (num_used / 2); i < num_used; i++) in ocfs2_dx_dir_find_leaf_split()
3613 BUG_ON(i == num_used); /* Should be impossible */ in ocfs2_dx_dir_find_leaf_split()
3634 int i, j, num_used; in ocfs2_dx_dir_transfer_leaf() local
3647 num_used = le16_to_cpu(orig_list->de_num_used); in ocfs2_dx_dir_transfer_leaf()
3651 memset(&tmp_list->de_entries, 0, sizeof(*dx_entry)*num_used); in ocfs2_dx_dir_transfer_leaf()
3653 for (j = 0; j < num_used; j++) { in ocfs2_dx_dir_transfer_leaf()
3691 int credits, ret, i, num_used, did_quota = 0; in ocfs2_dx_dir_rebalance() local
3717 num_used = le16_to_cpu(dx_leaf->dl_list.de_num_used); in ocfs2_dx_dir_rebalance()
3718 if (num_used < le16_to_cpu(dx_leaf->dl_list.de_count)) { in ocfs2_dx_dir_rebalance()
3721 (unsigned long long)leaf_blkno, num_used); in ocfs2_dx_dir_rebalance()
3772 sort(dx_leaf->dl_list.de_entries, num_used, in ocfs2_dx_dir_rebalance()