Lines Matching refs:median
942 int i = 0, median; in ntfs_ie_get_median() local
956 median = i / 2 - 1; in ntfs_ie_get_median()
958 ntfs_log_trace("Entries: %d median: %d\n", i, median); in ntfs_ie_get_median()
960 for (i = 0, ie = ie_start; i <= median; i++) in ntfs_ie_get_median()
1143 INDEX_ENTRY *median, VCN new_vcn) in ntfs_ib_copy_tail() argument
1157 ie_head = ntfs_ie_get_next(median); in ntfs_ib_copy_tail()
1435 static int ntfs_ir_insert_median(ntfs_index_context *icx, INDEX_ENTRY *median, in ntfs_ir_insert_median() argument
1448 le16_to_cpu(median->length); in ntfs_ir_insert_median()
1449 if (!(median->ie_flags & INDEX_ENTRY_NODE)) in ntfs_ir_insert_median()
1460 return ntfs_ih_insert(&icx->ir->index, median, new_vcn, in ntfs_ir_insert_median()
1518 INDEX_ENTRY *median; in ntfs_ib_split() local
1527 median = ntfs_ie_get_median(&ib->index); in ntfs_ib_split()
1532 if (ntfs_ib_copy_tail(icx, ib, median, new_vcn)) { in ntfs_ib_split()
1538 ret = ntfs_ir_insert_median(icx, median, new_vcn); in ntfs_ib_split()
1540 ret = ntfs_ib_insert(icx, median, new_vcn); in ntfs_ib_split()
1547 ret = ntfs_ib_cut_tail(icx, ib, median); in ntfs_ib_split()