Lines Matching refs:firstused

115 		to->firstused = be16_to_cpu(hdr3->firstused);  in xfs_attr3_leaf_firstused_from_disk()
117 to->firstused = be16_to_cpu(from->hdr.firstused); in xfs_attr3_leaf_firstused_from_disk()
125 if (to->firstused == XFS_ATTR3_LEAF_NULLOFF) { in xfs_attr3_leaf_firstused_from_disk()
128 to->firstused = geo->blksize; in xfs_attr3_leaf_firstused_from_disk()
139 uint32_t firstused; in xfs_attr3_leaf_firstused_to_disk() local
142 ASSERT(from->firstused != XFS_ATTR3_LEAF_NULLOFF); in xfs_attr3_leaf_firstused_to_disk()
149 firstused = from->firstused; in xfs_attr3_leaf_firstused_to_disk()
150 if (firstused > USHRT_MAX) { in xfs_attr3_leaf_firstused_to_disk()
151 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk()
152 firstused = XFS_ATTR3_LEAF_NULLOFF; in xfs_attr3_leaf_firstused_to_disk()
157 hdr3->firstused = cpu_to_be16(firstused); in xfs_attr3_leaf_firstused_to_disk()
159 to->hdr.firstused = cpu_to_be16(firstused); in xfs_attr3_leaf_firstused_to_disk()
1050 ichdr.firstused = args->geo->blksize; in xfs_attr3_leaf_create()
1066 ichdr.freemap[0].size = ichdr.firstused - ichdr.freemap[0].base; in xfs_attr3_leaf_create()
1164 if (tablesize > ichdr.firstused) { in xfs_attr3_leaf_add()
1171 if (ichdr.freemap[i].base < ichdr.firstused) in xfs_attr3_leaf_add()
1315 if (be16_to_cpu(entry->nameidx) < ichdr->firstused) in xfs_attr3_leaf_add_work()
1316 ichdr->firstused = be16_to_cpu(entry->nameidx); in xfs_attr3_leaf_add_work()
1318 ASSERT(ichdr->firstused >= ichdr->count * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_add_work()
1365 ichdr_dst->firstused = args->geo->blksize; in xfs_attr3_leaf_compact()
1370 ichdr_dst->freemap[0].size = ichdr_dst->firstused - in xfs_attr3_leaf_compact()
1530 max = ichdr2.firstused - xfs_attr3_leaf_hdr_size(leaf1); in xfs_attr3_leaf_rebalance()
1559 max = ichdr1.firstused - xfs_attr3_leaf_hdr_size(leaf1); in xfs_attr3_leaf_rebalance()
1890 ASSERT(ichdr.firstused >= ichdr.count * sizeof(*entry) + in xfs_attr3_leaf_remove()
1895 ASSERT(be16_to_cpu(entry->nameidx) >= ichdr.firstused); in xfs_attr3_leaf_remove()
1959 if (be16_to_cpu(entry->nameidx) == ichdr.firstused) in xfs_attr3_leaf_remove()
1992 ASSERT(be16_to_cpu(entry->nameidx) >= ichdr.firstused); in xfs_attr3_leaf_remove()
1998 ichdr.firstused = tmp; in xfs_attr3_leaf_remove()
1999 ASSERT(ichdr.firstused != 0); in xfs_attr3_leaf_remove()
2089 tmphdr.firstused = state->args->geo->blksize; in xfs_attr3_leaf_unbalance()
2350 ASSERT(ichdr_s->firstused >= (ichdr_s->count * sizeof(*entry_s)) in xfs_attr3_leaf_moveents()
2353 ASSERT(ichdr_d->firstused >= (ichdr_d->count * sizeof(*entry_d)) in xfs_attr3_leaf_moveents()
2380 ASSERT(be16_to_cpu(entry_s->nameidx) >= ichdr_s->firstused); in xfs_attr3_leaf_moveents()
2398 ichdr_d->firstused -= tmp; in xfs_attr3_leaf_moveents()
2401 entry_d->nameidx = cpu_to_be16(ichdr_d->firstused); in xfs_attr3_leaf_moveents()
2416 ASSERT(ichdr_d->firstused >= tmp); in xfs_attr3_leaf_moveents()
2453 ichdr_d->freemap[0].size = ichdr_d->firstused - ichdr_d->freemap[0].base; in xfs_attr3_leaf_moveents()