Lines Matching refs:firstused
76 * attr3 block 'firstused' conversion helpers.
78 * firstused refers to the offset of the first used byte of the nameval region
80 * backwards towards the middle. As such, firstused is initialized to the block
84 * The in-core firstused field is 32-bit and thus supports the maximum fsb size.
101 to->firstused = be16_to_cpu(hdr3->firstused);
103 to->firstused = be16_to_cpu(from->hdr.firstused);
111 if (to->firstused == XFS_ATTR3_LEAF_NULLOFF) {
114 to->firstused = geo->blksize;
125 uint32_t firstused;
128 ASSERT(from->firstused != XFS_ATTR3_LEAF_NULLOFF);
131 * Scale down the 32-bit in-core firstused value to the 16-bit on-disk
135 firstused = from->firstused;
136 if (firstused > USHRT_MAX) {
137 ASSERT(from->firstused == geo->blksize);
138 firstused = XFS_ATTR3_LEAF_NULLOFF;
143 hdr3->firstused = cpu_to_be16(firstused);
145 to->hdr.firstused = cpu_to_be16(firstused);
259 if (nameidx < leafhdr->firstused || nameidx >= mp->m_attr_geo->blksize)
312 * firstused is the block offset of the first name info structure.
315 if (ichdr.firstused > mp->m_attr_geo->blksize)
317 if (ichdr.firstused < xfs_attr3_leaf_hdr_size(leaf))
323 (char *)bp->b_addr + ichdr.firstused)
1269 ichdr.firstused = args->geo->blksize;
1285 ichdr.freemap[0].size = ichdr.firstused - ichdr.freemap[0].base;
1383 if (tablesize > ichdr.firstused) {
1390 if (ichdr.freemap[i].base < ichdr.firstused)
1535 if (be16_to_cpu(entry->nameidx) < ichdr->firstused)
1536 ichdr->firstused = be16_to_cpu(entry->nameidx);
1538 ASSERT(ichdr->firstused >= ichdr->count * sizeof(xfs_attr_leaf_entry_t)
1587 ichdr_dst->firstused = args->geo->blksize;
1592 ichdr_dst->freemap[0].size = ichdr_dst->firstused -
1745 max = ichdr2.firstused - xfs_attr3_leaf_hdr_size(leaf1);
1774 max = ichdr1.firstused - xfs_attr3_leaf_hdr_size(leaf1);
2105 ASSERT(ichdr.firstused >= ichdr.count * sizeof(*entry) +
2110 ASSERT(be16_to_cpu(entry->nameidx) >= ichdr.firstused);
2174 if (be16_to_cpu(entry->nameidx) == ichdr.firstused)
2199 * in the name area. Note that if the entry was the "firstused",
2207 ASSERT(be16_to_cpu(entry->nameidx) >= ichdr.firstused);
2213 ichdr.firstused = tmp;
2214 ASSERT(ichdr.firstused != 0);
2304 tmphdr.firstused = state->args->geo->blksize;
2544 ASSERT(ichdr_s->firstused >= (ichdr_s->count * sizeof(*entry_s))
2547 ASSERT(ichdr_d->firstused >= (ichdr_d->count * sizeof(*entry_d))
2574 ASSERT(be16_to_cpu(entry_s->nameidx) >= ichdr_s->firstused);
2592 ichdr_d->firstused -= tmp;
2595 entry_d->nameidx = cpu_to_be16(ichdr_d->firstused);
2610 ASSERT(ichdr_d->firstused >= tmp);
2647 ichdr_d->freemap[0].size = ichdr_d->firstused - ichdr_d->freemap[0].base;