Lines Matching refs:firstused

103 		to->firstused = be16_to_cpu(hdr3->firstused);  in xfs_attr3_leaf_firstused_from_disk()
105 to->firstused = be16_to_cpu(from->hdr.firstused); in xfs_attr3_leaf_firstused_from_disk()
113 if (to->firstused == XFS_ATTR3_LEAF_NULLOFF) { in xfs_attr3_leaf_firstused_from_disk()
116 to->firstused = geo->blksize; in xfs_attr3_leaf_firstused_from_disk()
127 uint32_t firstused; in xfs_attr3_leaf_firstused_to_disk() local
130 ASSERT(from->firstused != XFS_ATTR3_LEAF_NULLOFF); in xfs_attr3_leaf_firstused_to_disk()
137 firstused = from->firstused; in xfs_attr3_leaf_firstused_to_disk()
138 if (firstused > USHRT_MAX) { in xfs_attr3_leaf_firstused_to_disk()
139 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk()
140 firstused = XFS_ATTR3_LEAF_NULLOFF; in xfs_attr3_leaf_firstused_to_disk()
145 hdr3->firstused = cpu_to_be16(firstused); in xfs_attr3_leaf_firstused_to_disk()
147 to->hdr.firstused = cpu_to_be16(firstused); in xfs_attr3_leaf_firstused_to_disk()
261 if (nameidx < leafhdr->firstused || nameidx >= mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify_entry()
334 if (ichdr.firstused > mp->m_attr_geo->blksize) in xfs_attr3_leaf_verify()
336 if (ichdr.firstused < xfs_attr3_leaf_hdr_size(leaf)) in xfs_attr3_leaf_verify()
342 (char *)bp->b_addr + ichdr.firstused) in xfs_attr3_leaf_verify()
1314 ichdr.firstused = args->geo->blksize; in xfs_attr3_leaf_create()
1330 ichdr.freemap[0].size = ichdr.firstused - ichdr.freemap[0].base; in xfs_attr3_leaf_create()
1428 if (tablesize > ichdr.firstused) { in xfs_attr3_leaf_add()
1435 if (ichdr.freemap[i].base < ichdr.firstused) in xfs_attr3_leaf_add()
1581 if (be16_to_cpu(entry->nameidx) < ichdr->firstused) in xfs_attr3_leaf_add_work()
1582 ichdr->firstused = be16_to_cpu(entry->nameidx); in xfs_attr3_leaf_add_work()
1584 ASSERT(ichdr->firstused >= ichdr->count * sizeof(xfs_attr_leaf_entry_t) in xfs_attr3_leaf_add_work()
1633 ichdr_dst->firstused = args->geo->blksize; in xfs_attr3_leaf_compact()
1638 ichdr_dst->freemap[0].size = ichdr_dst->firstused - in xfs_attr3_leaf_compact()
1791 max = ichdr2.firstused - xfs_attr3_leaf_hdr_size(leaf1); in xfs_attr3_leaf_rebalance()
1820 max = ichdr1.firstused - xfs_attr3_leaf_hdr_size(leaf1); in xfs_attr3_leaf_rebalance()
2151 ASSERT(ichdr.firstused >= ichdr.count * sizeof(*entry) + in xfs_attr3_leaf_remove()
2156 ASSERT(be16_to_cpu(entry->nameidx) >= ichdr.firstused); in xfs_attr3_leaf_remove()
2220 if (be16_to_cpu(entry->nameidx) == ichdr.firstused) in xfs_attr3_leaf_remove()
2253 ASSERT(be16_to_cpu(entry->nameidx) >= ichdr.firstused); in xfs_attr3_leaf_remove()
2259 ichdr.firstused = tmp; in xfs_attr3_leaf_remove()
2260 ASSERT(ichdr.firstused != 0); in xfs_attr3_leaf_remove()
2350 tmphdr.firstused = state->args->geo->blksize; in xfs_attr3_leaf_unbalance()
2590 ASSERT(ichdr_s->firstused >= (ichdr_s->count * sizeof(*entry_s)) in xfs_attr3_leaf_moveents()
2593 ASSERT(ichdr_d->firstused >= (ichdr_d->count * sizeof(*entry_d)) in xfs_attr3_leaf_moveents()
2620 ASSERT(be16_to_cpu(entry_s->nameidx) >= ichdr_s->firstused); in xfs_attr3_leaf_moveents()
2638 ichdr_d->firstused -= tmp; in xfs_attr3_leaf_moveents()
2641 entry_d->nameidx = cpu_to_be16(ichdr_d->firstused); in xfs_attr3_leaf_moveents()
2656 ASSERT(ichdr_d->firstused >= tmp); in xfs_attr3_leaf_moveents()
2693 ichdr_d->freemap[0].size = ichdr_d->firstused - ichdr_d->freemap[0].base; in xfs_attr3_leaf_moveents()