Lines Matching refs:entry
980 struct xfs_attr_leaf_entry *entry; in xfs_attr_shortform_allfit() local
989 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr_shortform_allfit()
992 for (i = 0; i < leafhdr.count; entry++, i++) { in xfs_attr_shortform_allfit()
993 if (entry->flags & XFS_ATTR_INCOMPLETE) in xfs_attr_shortform_allfit()
995 if (!(entry->flags & XFS_ATTR_LOCAL)) in xfs_attr_shortform_allfit()
1099 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_to_shortform() local
1117 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_to_shortform()
1149 for (i = 0; i < ichdr.count; entry++, i++) { in xfs_attr3_leaf_to_shortform()
1150 if (entry->flags & XFS_ATTR_INCOMPLETE) in xfs_attr3_leaf_to_shortform()
1152 if (!entry->nameidx) in xfs_attr3_leaf_to_shortform()
1154 ASSERT(entry->flags & XFS_ATTR_LOCAL); in xfs_attr3_leaf_to_shortform()
1160 nargs.hashval = be32_to_cpu(entry->hashval); in xfs_attr3_leaf_to_shortform()
1161 nargs.attr_filter = entry->flags & XFS_ATTR_NSP_ONDISK_MASK; in xfs_attr3_leaf_to_shortform()
1444 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_add_work() local
1460 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_add_work()
1464 memmove(entry + 1, entry, tmp); in xfs_attr3_leaf_add_work()
1466 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(*entry))); in xfs_attr3_leaf_add_work()
1483 entry->nameidx = cpu_to_be16(ichdr->freemap[mapindex].base + in xfs_attr3_leaf_add_work()
1485 entry->hashval = cpu_to_be32(args->hashval); in xfs_attr3_leaf_add_work()
1486 entry->flags = args->attr_filter; in xfs_attr3_leaf_add_work()
1488 entry->flags |= XFS_ATTR_LOCAL; in xfs_attr3_leaf_add_work()
1490 entry->flags |= XFS_ATTR_INCOMPLETE; in xfs_attr3_leaf_add_work()
1497 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_add_work()
1499 (be32_to_cpu(entry->hashval) >= be32_to_cpu((entry-1)->hashval))); in xfs_attr3_leaf_add_work()
1501 (be32_to_cpu(entry->hashval) <= be32_to_cpu((entry+1)->hashval))); in xfs_attr3_leaf_add_work()
1510 if (entry->flags & XFS_ATTR_LOCAL) { in xfs_attr3_leaf_add_work()
1521 entry->flags |= XFS_ATTR_INCOMPLETE; in xfs_attr3_leaf_add_work()
1536 if (be16_to_cpu(entry->nameidx) < ichdr->firstused) in xfs_attr3_leaf_add_work()
1537 ichdr->firstused = be16_to_cpu(entry->nameidx); in xfs_attr3_leaf_add_work()
1868 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_figure_balance() local
1883 half = (max + 1) * sizeof(*entry); in xfs_attr3_leaf_figure_balance()
1888 entry = xfs_attr3_leaf_entryp(leaf1); in xfs_attr3_leaf_figure_balance()
1889 for (count = index = 0; count < max; entry++, index++, count++) { in xfs_attr3_leaf_figure_balance()
1896 tmp = totallen + sizeof(*entry) + in xfs_attr3_leaf_figure_balance()
1910 entry = xfs_attr3_leaf_entryp(leaf1); in xfs_attr3_leaf_figure_balance()
1917 tmp = totallen + sizeof(*entry) + xfs_attr_leaf_entsize(leaf1, in xfs_attr3_leaf_figure_balance()
1930 totallen -= count * sizeof(*entry); in xfs_attr3_leaf_figure_balance()
1932 totallen -= sizeof(*entry) + in xfs_attr3_leaf_figure_balance()
2090 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_remove() local
2106 ASSERT(ichdr.firstused >= ichdr.count * sizeof(*entry) + in xfs_attr3_leaf_remove()
2109 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_remove()
2111 ASSERT(be16_to_cpu(entry->nameidx) >= ichdr.firstused); in xfs_attr3_leaf_remove()
2112 ASSERT(be16_to_cpu(entry->nameidx) < args->geo->blksize); in xfs_attr3_leaf_remove()
2135 be16_to_cpu(entry->nameidx)) { in xfs_attr3_leaf_remove()
2138 (be16_to_cpu(entry->nameidx) + entsize)) { in xfs_attr3_leaf_remove()
2159 ichdr.freemap[after].base = be16_to_cpu(entry->nameidx); in xfs_attr3_leaf_remove()
2167 ichdr.freemap[smallest].base = be16_to_cpu(entry->nameidx); in xfs_attr3_leaf_remove()
2175 if (be16_to_cpu(entry->nameidx) == ichdr.firstused) in xfs_attr3_leaf_remove()
2190 memmove(entry, entry + 1, tmp); in xfs_attr3_leaf_remove()
2193 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(xfs_attr_leaf_entry_t))); in xfs_attr3_leaf_remove()
2195 entry = &xfs_attr3_leaf_entryp(leaf)[ichdr.count]; in xfs_attr3_leaf_remove()
2196 memset(entry, 0, sizeof(xfs_attr_leaf_entry_t)); in xfs_attr3_leaf_remove()
2206 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_remove()
2207 for (i = ichdr.count - 1; i >= 0; entry++, i--) { in xfs_attr3_leaf_remove()
2208 ASSERT(be16_to_cpu(entry->nameidx) >= ichdr.firstused); in xfs_attr3_leaf_remove()
2209 ASSERT(be16_to_cpu(entry->nameidx) < args->geo->blksize); in xfs_attr3_leaf_remove()
2211 if (be16_to_cpu(entry->nameidx) < tmp) in xfs_attr3_leaf_remove()
2212 tmp = be16_to_cpu(entry->nameidx); in xfs_attr3_leaf_remove()
2247 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_unbalance() local
2255 entry = xfs_attr3_leaf_entryp(drop_leaf); in xfs_attr3_leaf_unbalance()
2260 drop_blk->hashval = be32_to_cpu(entry[drophdr.count - 1].hashval); in xfs_attr3_leaf_unbalance()
2342 entry = xfs_attr3_leaf_entryp(save_leaf); in xfs_attr3_leaf_unbalance()
2343 save_blk->hashval = be32_to_cpu(entry[savehdr.count - 1].hashval); in xfs_attr3_leaf_unbalance()
2370 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_lookup_int() local
2393 for (entry = &entries[probe]; span > 4; entry = &entries[probe]) { in xfs_attr3_leaf_lookup_int()
2395 if (be32_to_cpu(entry->hashval) < hashval) in xfs_attr3_leaf_lookup_int()
2397 else if (be32_to_cpu(entry->hashval) > hashval) in xfs_attr3_leaf_lookup_int()
2406 if (!(span <= 4 || be32_to_cpu(entry->hashval) == hashval)) { in xfs_attr3_leaf_lookup_int()
2415 while (probe > 0 && be32_to_cpu(entry->hashval) >= hashval) { in xfs_attr3_leaf_lookup_int()
2416 entry--; in xfs_attr3_leaf_lookup_int()
2420 be32_to_cpu(entry->hashval) < hashval) { in xfs_attr3_leaf_lookup_int()
2421 entry++; in xfs_attr3_leaf_lookup_int()
2424 if (probe == ichdr.count || be32_to_cpu(entry->hashval) != hashval) { in xfs_attr3_leaf_lookup_int()
2432 for (; probe < ichdr.count && (be32_to_cpu(entry->hashval) == hashval); in xfs_attr3_leaf_lookup_int()
2433 entry++, probe++) { in xfs_attr3_leaf_lookup_int()
2437 if (entry->flags & XFS_ATTR_LOCAL) { in xfs_attr3_leaf_lookup_int()
2440 name_loc->nameval, entry->flags)) in xfs_attr3_leaf_lookup_int()
2447 name_rmt->name, entry->flags)) in xfs_attr3_leaf_lookup_int()
2477 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_getvalue() local
2486 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_getvalue()
2487 if (entry->flags & XFS_ATTR_LOCAL) { in xfs_attr3_leaf_getvalue()
2738 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_clearflag() local
2758 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_clearflag()
2759 ASSERT(entry->flags & XFS_ATTR_INCOMPLETE); in xfs_attr3_leaf_clearflag()
2766 if (entry->flags & XFS_ATTR_LOCAL) { in xfs_attr3_leaf_clearflag()
2775 ASSERT(be32_to_cpu(entry->hashval) == args->hashval); in xfs_attr3_leaf_clearflag()
2780 entry->flags &= ~XFS_ATTR_INCOMPLETE; in xfs_attr3_leaf_clearflag()
2782 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_clearflag()
2785 ASSERT((entry->flags & XFS_ATTR_LOCAL) == 0); in xfs_attr3_leaf_clearflag()
2804 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_setflag() local
2827 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_setflag()
2829 ASSERT((entry->flags & XFS_ATTR_INCOMPLETE) == 0); in xfs_attr3_leaf_setflag()
2830 entry->flags |= XFS_ATTR_INCOMPLETE; in xfs_attr3_leaf_setflag()
2832 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_setflag()
2833 if ((entry->flags & XFS_ATTR_LOCAL) == 0) { in xfs_attr3_leaf_setflag()