• Home
  • Raw
  • Download

Lines Matching refs:index

91 STATIC int xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index);
1010 ASSERT((args->index >= 0) in xfs_attr_leaf_add()
1011 && (args->index <= be16_to_cpu(leaf->hdr.count))); in xfs_attr_leaf_add()
1085 ASSERT((args->index >= 0) && (args->index <= be16_to_cpu(hdr->count))); in xfs_attr_leaf_add_work()
1090 entry = &leaf->entries[args->index]; in xfs_attr_leaf_add_work()
1091 if (args->index < be16_to_cpu(hdr->count)) { in xfs_attr_leaf_add_work()
1092 tmp = be16_to_cpu(hdr->count) - args->index; in xfs_attr_leaf_add_work()
1123 (args->index2 <= args->index)) { in xfs_attr_leaf_add_work()
1129 ASSERT((args->index == 0) || in xfs_attr_leaf_add_work()
1131 ASSERT((args->index == be16_to_cpu(hdr->count)-1) || in xfs_attr_leaf_add_work()
1144 name_loc = xfs_attr_leaf_name_local(leaf, args->index); in xfs_attr_leaf_add_work()
1151 name_rmt = xfs_attr_leaf_name_remote(leaf, args->index); in xfs_attr_leaf_add_work()
1162 XFS_DA_LOGRANGE(leaf, xfs_attr_leaf_name(leaf, args->index), in xfs_attr_leaf_add_work()
1163 xfs_attr_leaf_entsize(leaf, args->index))); in xfs_attr_leaf_add_work()
1184 be16_add_cpu(&hdr->usedbytes, xfs_attr_leaf_entsize(leaf, args->index)); in xfs_attr_leaf_add_work()
1387 if (blk1->index > be16_to_cpu(leaf1->hdr.count)) { in xfs_attr_leaf_rebalance()
1389 blk2->index = blk1->index - be16_to_cpu(leaf1->hdr.count); in xfs_attr_leaf_rebalance()
1390 args->index = args->index2 = blk2->index; in xfs_attr_leaf_rebalance()
1392 } else if (blk1->index == be16_to_cpu(leaf1->hdr.count)) { in xfs_attr_leaf_rebalance()
1394 args->index = blk1->index; in xfs_attr_leaf_rebalance()
1399 blk2->index = blk1->index in xfs_attr_leaf_rebalance()
1401 args->index = args->index2 = blk2->index; in xfs_attr_leaf_rebalance()
1406 args->index = args->index2 = blk1->index; in xfs_attr_leaf_rebalance()
1427 int count, max, index, totallen, half; in xfs_attr_leaf_figure_balance() local
1455 for (count = index = 0; count < max; entry++, index++, count++) { in xfs_attr_leaf_figure_balance()
1461 if (count == blk1->index) { in xfs_attr_leaf_figure_balance()
1480 index = 0; in xfs_attr_leaf_figure_balance()
1487 index); in xfs_attr_leaf_figure_balance()
1667 ASSERT((args->index >= 0) in xfs_attr_leaf_remove()
1668 && (args->index < be16_to_cpu(hdr->count))); in xfs_attr_leaf_remove()
1671 entry = &leaf->entries[args->index]; in xfs_attr_leaf_remove()
1687 entsize = xfs_attr_leaf_entsize(leaf, args->index); in xfs_attr_leaf_remove()
1752 memset(xfs_attr_leaf_name(leaf, args->index), 0, entsize); in xfs_attr_leaf_remove()
1755 XFS_DA_LOGRANGE(leaf, xfs_attr_leaf_name(leaf, args->index), in xfs_attr_leaf_remove()
1758 tmp = (be16_to_cpu(hdr->count) - args->index) in xfs_attr_leaf_remove()
1966 args->index = probe; in xfs_attr_leaf_lookup_int()
1995 args->index = probe; in xfs_attr_leaf_lookup_int()
2006 args->index = probe; in xfs_attr_leaf_lookup_int()
2013 args->index = probe; in xfs_attr_leaf_lookup_int()
2034 ASSERT(args->index < be16_to_cpu(leaf->hdr.count)); in xfs_attr_leaf_getvalue()
2036 entry = &leaf->entries[args->index]; in xfs_attr_leaf_getvalue()
2038 name_loc = xfs_attr_leaf_name_local(leaf, args->index); in xfs_attr_leaf_getvalue()
2053 name_rmt = xfs_attr_leaf_name_remote(leaf, args->index); in xfs_attr_leaf_getvalue()
2271 xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index) in xfs_attr_leaf_entsize() argument
2278 if (leaf->entries[index].flags & XFS_ATTR_LOCAL) { in xfs_attr_leaf_entsize()
2279 name_loc = xfs_attr_leaf_name_local(leaf, index); in xfs_attr_leaf_entsize()
2283 name_rmt = xfs_attr_leaf_name_remote(leaf, index); in xfs_attr_leaf_entsize()
2464 ASSERT(args->index < be16_to_cpu(leaf->hdr.count)); in xfs_attr_leaf_clearflag()
2465 ASSERT(args->index >= 0); in xfs_attr_leaf_clearflag()
2466 entry = &leaf->entries[ args->index ]; in xfs_attr_leaf_clearflag()
2471 name_loc = xfs_attr_leaf_name_local(leaf, args->index); in xfs_attr_leaf_clearflag()
2475 name_rmt = xfs_attr_leaf_name_remote(leaf, args->index); in xfs_attr_leaf_clearflag()
2490 name_rmt = xfs_attr_leaf_name_remote(leaf, args->index); in xfs_attr_leaf_clearflag()
2528 ASSERT(args->index < be16_to_cpu(leaf->hdr.count)); in xfs_attr_leaf_setflag()
2529 ASSERT(args->index >= 0); in xfs_attr_leaf_setflag()
2530 entry = &leaf->entries[ args->index ]; in xfs_attr_leaf_setflag()
2537 name_rmt = xfs_attr_leaf_name_remote(leaf, args->index); in xfs_attr_leaf_setflag()
2598 ASSERT(args->index < be16_to_cpu(leaf1->hdr.count)); in xfs_attr_leaf_flipflags()
2599 ASSERT(args->index >= 0); in xfs_attr_leaf_flipflags()
2600 entry1 = &leaf1->entries[ args->index ]; in xfs_attr_leaf_flipflags()
2610 name_loc = xfs_attr_leaf_name_local(leaf1, args->index); in xfs_attr_leaf_flipflags()
2614 name_rmt = xfs_attr_leaf_name_remote(leaf1, args->index); in xfs_attr_leaf_flipflags()
2640 name_rmt = xfs_attr_leaf_name_remote(leaf1, args->index); in xfs_attr_leaf_flipflags()