Lines Matching refs:lowstale

204 	int			lowstale;	/* index of prev stale leaf */  in xfs_dir2_leaf_addname()  local
346 xfs_dir2_leaf_compact_x1(lbp, &index, &lowstale, &highstale, in xfs_dir2_leaf_addname()
489 for (lowstale = index - 1; in xfs_dir2_leaf_addname()
490 lowstale >= 0 && in xfs_dir2_leaf_addname()
491 INT_GET(leaf->ents[lowstale].address, ARCH_CONVERT) != in xfs_dir2_leaf_addname()
493 lowstale--) in xfs_dir2_leaf_addname()
504 (lowstale < 0 || in xfs_dir2_leaf_addname()
505 index - lowstale - 1 >= highstale - index); in xfs_dir2_leaf_addname()
512 if (lowstale >= 0 && in xfs_dir2_leaf_addname()
514 index - lowstale - 1 < highstale - index)) { in xfs_dir2_leaf_addname()
515 ASSERT(index - lowstale - 1 >= 0); in xfs_dir2_leaf_addname()
516 ASSERT(INT_GET(leaf->ents[lowstale].address, ARCH_CONVERT) == in xfs_dir2_leaf_addname()
522 if (index - lowstale - 1 > 0) in xfs_dir2_leaf_addname()
523 memmove(&leaf->ents[lowstale], in xfs_dir2_leaf_addname()
524 &leaf->ents[lowstale + 1], in xfs_dir2_leaf_addname()
525 (index - lowstale - 1) * sizeof(*lep)); in xfs_dir2_leaf_addname()
527 lfloglow = MIN(lowstale, lfloglow); in xfs_dir2_leaf_addname()
680 int lowstale; /* stale entry before index */ in xfs_dir2_leaf_compact_x1() local
690 for (lowstale = index - 1; in xfs_dir2_leaf_compact_x1()
691 lowstale >= 0 && in xfs_dir2_leaf_compact_x1()
692 INT_GET(leaf->ents[lowstale].address, ARCH_CONVERT) != XFS_DIR2_NULL_DATAPTR; in xfs_dir2_leaf_compact_x1()
693 lowstale--) in xfs_dir2_leaf_compact_x1()
702 (lowstale < 0 || index - lowstale > highstale - index); in xfs_dir2_leaf_compact_x1()
708 if (lowstale >= 0 && in xfs_dir2_leaf_compact_x1()
710 index - lowstale <= highstale - index)) in xfs_dir2_leaf_compact_x1()
711 keepstale = lowstale; in xfs_dir2_leaf_compact_x1()
734 lowstale = highstale = to; in xfs_dir2_leaf_compact_x1()
759 if (lowstale >= newindex) in xfs_dir2_leaf_compact_x1()
760 lowstale = -1; in xfs_dir2_leaf_compact_x1()
764 *lowstalep = lowstale; in xfs_dir2_leaf_compact_x1()