Lines Matching defs:offset
52 xfs_dir2_dataptr_t off; /* current entry's offset */
67 * If the block number in the offset is out of range, we're done.
147 int wantoff; /* starting block offset */
150 unsigned int offset, next_offset;
154 * If the block number in the offset is out of range, we're done.
167 * Extract the byte offset we start at from the seek pointer.
178 for (offset = geo->data_entry_offset;
179 offset < end;
180 offset = next_offset) {
181 struct xfs_dir2_data_unused *dup = bp->b_addr + offset;
182 struct xfs_dir2_data_entry *dep = bp->b_addr + offset;
189 next_offset = offset + be16_to_cpu(dup->length);
196 next_offset = offset +
202 if (offset < wantoff)
205 cook = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, offset);
210 * If it didn't fit, set the final offset to here & return.
226 * Set the offset to a non-existent block 1 and return.
267 * Look for mapped directory blocks at or above the current offset.
358 xfs_dir2_off_t curoff; /* current overall offset */
360 int byteoff; /* offset in current block */
361 unsigned int offset = 0;
365 * If the offset is at or past the largest allowed value,
372 * Inside the loop we keep the main offset value as a byte offset
378 * Loop over directory entries until we reach the end offset.
388 if (!bp || offset >= geo->blksize) {
408 offset = geo->data_entry_offset;
416 * Skip past entries until we reach our offset.
419 while (offset < byteoff) {
420 dup = bp->b_addr + offset;
426 offset += length;
429 dep = bp->b_addr + offset;
432 offset += length;
435 * Now set our real offset.
440 offset);
441 if (offset >= geo->blksize)
449 dup = bp->b_addr + offset;
456 offset += length;
461 dep = bp->b_addr + offset;
480 offset += length;
487 * All done. Set output offset value to current offset.