Lines Matching refs:firstused
78 * attr3 block 'firstused' conversion helpers.
80 * firstused refers to the offset of the first used byte of the nameval region
82 * backwards towards the middle. As such, firstused is initialized to the block
86 * The in-core firstused field is 32-bit and thus supports the maximum fsb size.
103 to->firstused = be16_to_cpu(hdr3->firstused);
105 to->firstused = be16_to_cpu(from->hdr.firstused);
113 if (to->firstused == XFS_ATTR3_LEAF_NULLOFF) {
116 to->firstused = geo->blksize;
127 uint32_t firstused;
130 ASSERT(from->firstused != XFS_ATTR3_LEAF_NULLOFF);
133 * Scale down the 32-bit in-core firstused value to the 16-bit on-disk
137 firstused = from->firstused;
138 if (firstused > USHRT_MAX) {
139 ASSERT(from->firstused == geo->blksize);
140 firstused = XFS_ATTR3_LEAF_NULLOFF;
145 hdr3->firstused = cpu_to_be16(firstused);
147 to->hdr.firstused = cpu_to_be16(firstused);
261 if (nameidx < leafhdr->firstused || nameidx >= mp->m_attr_geo->blksize)
331 * firstused is the block offset of the first name info structure.
334 if (ichdr.firstused > mp->m_attr_geo->blksize)
336 if (ichdr.firstused < xfs_attr3_leaf_hdr_size(leaf))
342 (char *)bp->b_addr + ichdr.firstused)
1314 ichdr.firstused = args->geo->blksize;
1330 ichdr.freemap[0].size = ichdr.firstused - ichdr.freemap[0].base;
1428 if (tablesize > ichdr.firstused) {
1435 if (ichdr.freemap[i].base < ichdr.firstused)
1581 if (be16_to_cpu(entry->nameidx) < ichdr->firstused)
1582 ichdr->firstused = be16_to_cpu(entry->nameidx);
1584 ASSERT(ichdr->firstused >= ichdr->count * sizeof(xfs_attr_leaf_entry_t)
1633 ichdr_dst->firstused = args->geo->blksize;
1638 ichdr_dst->freemap[0].size = ichdr_dst->firstused -
1791 max = ichdr2.firstused - xfs_attr3_leaf_hdr_size(leaf1);
1820 max = ichdr1.firstused - xfs_attr3_leaf_hdr_size(leaf1);
2151 ASSERT(ichdr.firstused >= ichdr.count * sizeof(*entry) +
2156 ASSERT(be16_to_cpu(entry->nameidx) >= ichdr.firstused);
2220 if (be16_to_cpu(entry->nameidx) == ichdr.firstused)
2245 * in the name area. Note that if the entry was the "firstused",
2253 ASSERT(be16_to_cpu(entry->nameidx) >= ichdr.firstused);
2259 ichdr.firstused = tmp;
2260 ASSERT(ichdr.firstused != 0);
2348 tmphdr.firstused = state->args->geo->blksize;
2588 ASSERT(ichdr_s->firstused >= (ichdr_s->count * sizeof(*entry_s))
2591 ASSERT(ichdr_d->firstused >= (ichdr_d->count * sizeof(*entry_d))
2618 ASSERT(be16_to_cpu(entry_s->nameidx) >= ichdr_s->firstused);
2636 ichdr_d->firstused -= tmp;
2639 entry_d->nameidx = cpu_to_be16(ichdr_d->firstused);
2654 ASSERT(ichdr_d->firstused >= tmp);
2691 ichdr_d->freemap[0].size = ichdr_d->firstused - ichdr_d->freemap[0].base;