Lines Matching refs:i_offset

311 	doff_t i_offset;		/* cached i_offset value */
314 doff_t prevoff; /* prev entry dp->i_offset */
368 &bp, &entryoffsetinblock, &i_offset, &prevoff,
372 (i_offset & bmask));
375 i_offset = roundup2(dp->i_size, DIRBLKSIZ);
400 i_offset = 0;
403 i_offset = i_diroff;
404 if ((entryoffsetinblock = i_offset & bmask) &&
405 (error = ext2_blkatoff(vdp, (off_t)i_offset, NULL,
411 prevoff = i_offset;
416 while (i_offset < endsearch) {
422 error = ext2_blkatoff(vdp, (off_t)i_offset, NULL, &bp);
437 &entryoffsetinblock, &i_offset, &prevoff,
458 i_offset = 0;
483 * can be put in the range from dp->i_offset to
484 * dp->i_offset + dp->i_count.
487 dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ);
489 enduseful = dp->i_offset;
491 dp->i_offset = ss.slotoffset;
531 ext2_dirbad(dp, i_offset, "i_size too small");
543 dp->i_diroff = rounddown2(i_offset, DIRBLKSIZ);
557 * Return pointer to current entry in dp->i_offset,
567 dp->i_offset = i_offset;
568 if ((dp->i_offset & (DIRBLKSIZ - 1)) == 0)
571 dp->i_count = dp->i_offset - prevoff;
612 dp->i_offset = i_offset;
859 * (dp->i_offset, dp->i_count) indicate how the space for the new
900 dp->i_offset == DIRBLKSIZ) {
912 * space in the directory. Here, dp->i_offset will
916 if (dp->i_offset & (DIRBLKSIZ - 1))
918 auio.uio_offset = dp->i_offset;
965 * for the new entry in the range dp->i_offset to
966 * dp->i_offset + dp->i_count in the directory.
979 if (dp->i_offset + dp->i_count > dp->i_size)
980 dp->i_size = dp->i_offset + dp->i_count;
984 if ((error = ext2_blkatoff(dvp, (off_t)dp->i_offset, &dirbuf,
990 * arranged that compacting the region dp->i_offset to
991 * dp->i_offset + dp->i_count would yield the
1042 * dp->i_offset contains the offset into the directory of the
1065 ext2_blkatoff(dvp, (off_t)dp->i_offset, (char **)&ep,
1076 if ((error = ext2_blkatoff(dvp, (off_t)(dp->i_offset - dp->i_count),
1107 if ((error = ext2_blkatoff(vdp, (off_t)dp->i_offset, (char **)&ep,