Lines Matching defs:index

835 	 * xfs_da3_node_add() inserts BEFORE the given index,
845 if (oldblk->index <= nodehdr.count) {
846 oldblk->index++;
850 oldblk->index++;
855 newblk->index++;
859 newblk->index++;
1004 * Adjust the expected index for insertion.
1006 if (blk1->index >= nodehdr1.count) {
1007 blk2->index = blk1->index - nodehdr1.count;
1008 blk1->index = nodehdr1.count + 1; /* make it invalid */
1033 ASSERT(oldblk->index >= 0 && oldblk->index <= nodehdr.count);
1043 if (oldblk->index < nodehdr.count) {
1044 tmp = (nodehdr.count - oldblk->index) * (uint)sizeof(*btree);
1045 memmove(&btree[oldblk->index + 1], &btree[oldblk->index], tmp);
1047 btree[oldblk->index].hashval = cpu_to_be32(newblk->hashval);
1048 btree[oldblk->index].before = cpu_to_be32(newblk->blkno);
1050 XFS_DA_LOGRANGE(node, &btree[oldblk->index],
1433 if (be32_to_cpu(btree[blk->index].hashval) == lasthash)
1436 btree[blk->index].hashval = cpu_to_be32(lasthash);
1438 XFS_DA_LOGRANGE(node, &btree[blk->index],
1456 int index;
1464 ASSERT(drop_blk->index < nodehdr.count);
1465 ASSERT(drop_blk->index >= 0);
1470 index = drop_blk->index;
1472 if (index < nodehdr.count - 1) {
1473 tmp = nodehdr.count - index - 1;
1475 memmove(&btree[index], &btree[index + 1], tmp);
1477 XFS_DA_LOGRANGE(node, &btree[index], tmp));
1478 index = nodehdr.count - 1;
1480 memset(&btree[index], 0, sizeof(xfs_da_node_entry_t));
1482 XFS_DA_LOGRANGE(node, &btree[index], sizeof(btree[index])));
1491 drop_blk->hashval = be32_to_cpu(btree[index - 1].hashval);
1712 blk->index = max - 1;
1715 blk->index = probe;
1736 &blk->index, state);
1739 blk->index = args->index;
1999 * current index is not at the edge of the block. Note that
2012 if (forward && (blk->index < nodehdr.count - 1)) {
2013 blk->index++;
2014 blkno = be32_to_cpu(nodehdr.btree[blk->index].before);
2016 } else if (!forward && (blk->index > 0)) {
2017 blk->index--;
2018 blkno = be32_to_cpu(nodehdr.btree[blk->index].before);
2074 blk->index = 0;
2076 blk->index = nodehdr.count - 1;
2077 blkno = be32_to_cpu(btree[blk->index].before);
2083 blk->index = 0;
2090 blk->index = 0;