• Home
  • Raw
  • Download

Lines Matching refs:entry

883 	struct xfs_attr_leaf_entry *entry;  in xfs_attr_shortform_allfit()  local
892 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr_shortform_allfit()
895 for (i = 0; i < leafhdr.count; entry++, i++) { in xfs_attr_shortform_allfit()
896 if (entry->flags & XFS_ATTR_INCOMPLETE) in xfs_attr_shortform_allfit()
898 if (!(entry->flags & XFS_ATTR_LOCAL)) in xfs_attr_shortform_allfit()
1001 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_to_shortform() local
1019 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_to_shortform()
1051 for (i = 0; i < ichdr.count; entry++, i++) { in xfs_attr3_leaf_to_shortform()
1052 if (entry->flags & XFS_ATTR_INCOMPLETE) in xfs_attr3_leaf_to_shortform()
1054 if (!entry->nameidx) in xfs_attr3_leaf_to_shortform()
1056 ASSERT(entry->flags & XFS_ATTR_LOCAL); in xfs_attr3_leaf_to_shortform()
1062 nargs.hashval = be32_to_cpu(entry->hashval); in xfs_attr3_leaf_to_shortform()
1063 nargs.flags = XFS_ATTR_NSP_ONDISK_TO_ARGS(entry->flags); in xfs_attr3_leaf_to_shortform()
1348 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_add_work() local
1364 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_add_work()
1368 memmove(entry + 1, entry, tmp); in xfs_attr3_leaf_add_work()
1370 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(*entry))); in xfs_attr3_leaf_add_work()
1387 entry->nameidx = cpu_to_be16(ichdr->freemap[mapindex].base + in xfs_attr3_leaf_add_work()
1389 entry->hashval = cpu_to_be32(args->hashval); in xfs_attr3_leaf_add_work()
1390 entry->flags = tmp ? XFS_ATTR_LOCAL : 0; in xfs_attr3_leaf_add_work()
1391 entry->flags |= XFS_ATTR_NSP_ARGS_TO_ONDISK(args->flags); in xfs_attr3_leaf_add_work()
1393 entry->flags |= XFS_ATTR_INCOMPLETE; in xfs_attr3_leaf_add_work()
1400 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_add_work()
1402 (be32_to_cpu(entry->hashval) >= be32_to_cpu((entry-1)->hashval))); in xfs_attr3_leaf_add_work()
1404 (be32_to_cpu(entry->hashval) <= be32_to_cpu((entry+1)->hashval))); in xfs_attr3_leaf_add_work()
1413 if (entry->flags & XFS_ATTR_LOCAL) { in xfs_attr3_leaf_add_work()
1424 entry->flags |= XFS_ATTR_INCOMPLETE; in xfs_attr3_leaf_add_work()
1439 if (be16_to_cpu(entry->nameidx) < ichdr->firstused) in xfs_attr3_leaf_add_work()
1440 ichdr->firstused = be16_to_cpu(entry->nameidx); in xfs_attr3_leaf_add_work()
1769 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_figure_balance() local
1784 half = (max + 1) * sizeof(*entry); in xfs_attr3_leaf_figure_balance()
1789 entry = xfs_attr3_leaf_entryp(leaf1); in xfs_attr3_leaf_figure_balance()
1790 for (count = index = 0; count < max; entry++, index++, count++) { in xfs_attr3_leaf_figure_balance()
1797 tmp = totallen + sizeof(*entry) + in xfs_attr3_leaf_figure_balance()
1811 entry = xfs_attr3_leaf_entryp(leaf1); in xfs_attr3_leaf_figure_balance()
1818 tmp = totallen + sizeof(*entry) + xfs_attr_leaf_entsize(leaf1, in xfs_attr3_leaf_figure_balance()
1831 totallen -= count * sizeof(*entry); in xfs_attr3_leaf_figure_balance()
1833 totallen -= sizeof(*entry) + in xfs_attr3_leaf_figure_balance()
1991 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_remove() local
2007 ASSERT(ichdr.firstused >= ichdr.count * sizeof(*entry) + in xfs_attr3_leaf_remove()
2010 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_remove()
2012 ASSERT(be16_to_cpu(entry->nameidx) >= ichdr.firstused); in xfs_attr3_leaf_remove()
2013 ASSERT(be16_to_cpu(entry->nameidx) < args->geo->blksize); in xfs_attr3_leaf_remove()
2036 be16_to_cpu(entry->nameidx)) { in xfs_attr3_leaf_remove()
2039 (be16_to_cpu(entry->nameidx) + entsize)) { in xfs_attr3_leaf_remove()
2060 ichdr.freemap[after].base = be16_to_cpu(entry->nameidx); in xfs_attr3_leaf_remove()
2068 ichdr.freemap[smallest].base = be16_to_cpu(entry->nameidx); in xfs_attr3_leaf_remove()
2076 if (be16_to_cpu(entry->nameidx) == ichdr.firstused) in xfs_attr3_leaf_remove()
2091 memmove(entry, entry + 1, tmp); in xfs_attr3_leaf_remove()
2094 XFS_DA_LOGRANGE(leaf, entry, tmp + sizeof(xfs_attr_leaf_entry_t))); in xfs_attr3_leaf_remove()
2096 entry = &xfs_attr3_leaf_entryp(leaf)[ichdr.count]; in xfs_attr3_leaf_remove()
2097 memset(entry, 0, sizeof(xfs_attr_leaf_entry_t)); in xfs_attr3_leaf_remove()
2107 entry = xfs_attr3_leaf_entryp(leaf); in xfs_attr3_leaf_remove()
2108 for (i = ichdr.count - 1; i >= 0; entry++, i--) { in xfs_attr3_leaf_remove()
2109 ASSERT(be16_to_cpu(entry->nameidx) >= ichdr.firstused); in xfs_attr3_leaf_remove()
2110 ASSERT(be16_to_cpu(entry->nameidx) < args->geo->blksize); in xfs_attr3_leaf_remove()
2112 if (be16_to_cpu(entry->nameidx) < tmp) in xfs_attr3_leaf_remove()
2113 tmp = be16_to_cpu(entry->nameidx); in xfs_attr3_leaf_remove()
2148 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_unbalance() local
2156 entry = xfs_attr3_leaf_entryp(drop_leaf); in xfs_attr3_leaf_unbalance()
2161 drop_blk->hashval = be32_to_cpu(entry[drophdr.count - 1].hashval); in xfs_attr3_leaf_unbalance()
2243 entry = xfs_attr3_leaf_entryp(save_leaf); in xfs_attr3_leaf_unbalance()
2244 save_blk->hashval = be32_to_cpu(entry[savehdr.count - 1].hashval); in xfs_attr3_leaf_unbalance()
2271 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_lookup_int() local
2292 for (entry = &entries[probe]; span > 4; entry = &entries[probe]) { in xfs_attr3_leaf_lookup_int()
2294 if (be32_to_cpu(entry->hashval) < hashval) in xfs_attr3_leaf_lookup_int()
2296 else if (be32_to_cpu(entry->hashval) > hashval) in xfs_attr3_leaf_lookup_int()
2303 if (!(span <= 4 || be32_to_cpu(entry->hashval) == hashval)) in xfs_attr3_leaf_lookup_int()
2310 while (probe > 0 && be32_to_cpu(entry->hashval) >= hashval) { in xfs_attr3_leaf_lookup_int()
2311 entry--; in xfs_attr3_leaf_lookup_int()
2315 be32_to_cpu(entry->hashval) < hashval) { in xfs_attr3_leaf_lookup_int()
2316 entry++; in xfs_attr3_leaf_lookup_int()
2319 if (probe == ichdr.count || be32_to_cpu(entry->hashval) != hashval) { in xfs_attr3_leaf_lookup_int()
2327 for (; probe < ichdr.count && (be32_to_cpu(entry->hashval) == hashval); in xfs_attr3_leaf_lookup_int()
2328 entry++, probe++) { in xfs_attr3_leaf_lookup_int()
2337 (entry->flags & XFS_ATTR_INCOMPLETE)) { in xfs_attr3_leaf_lookup_int()
2340 if (entry->flags & XFS_ATTR_LOCAL) { in xfs_attr3_leaf_lookup_int()
2347 if (!xfs_attr_namesp_match(args->flags, entry->flags)) in xfs_attr3_leaf_lookup_int()
2358 if (!xfs_attr_namesp_match(args->flags, entry->flags)) in xfs_attr3_leaf_lookup_int()
2388 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_getvalue() local
2397 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_getvalue()
2398 if (entry->flags & XFS_ATTR_LOCAL) { in xfs_attr3_leaf_getvalue()
2649 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_clearflag() local
2669 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_clearflag()
2670 ASSERT(entry->flags & XFS_ATTR_INCOMPLETE); in xfs_attr3_leaf_clearflag()
2677 if (entry->flags & XFS_ATTR_LOCAL) { in xfs_attr3_leaf_clearflag()
2686 ASSERT(be32_to_cpu(entry->hashval) == args->hashval); in xfs_attr3_leaf_clearflag()
2691 entry->flags &= ~XFS_ATTR_INCOMPLETE; in xfs_attr3_leaf_clearflag()
2693 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_clearflag()
2696 ASSERT((entry->flags & XFS_ATTR_LOCAL) == 0); in xfs_attr3_leaf_clearflag()
2718 struct xfs_attr_leaf_entry *entry; in xfs_attr3_leaf_setflag() local
2741 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_setflag()
2743 ASSERT((entry->flags & XFS_ATTR_INCOMPLETE) == 0); in xfs_attr3_leaf_setflag()
2744 entry->flags |= XFS_ATTR_INCOMPLETE; in xfs_attr3_leaf_setflag()
2746 XFS_DA_LOGRANGE(leaf, entry, sizeof(*entry))); in xfs_attr3_leaf_setflag()
2747 if ((entry->flags & XFS_ATTR_LOCAL) == 0) { in xfs_attr3_leaf_setflag()