• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/fs/ext2fs/

Lines Matching refs:i_offset

333 	doff_t i_offset;		/* cached i_offset value */
336 doff_t prevoff; /* prev entry dp->i_offset */
390 &bp, &entryoffsetinblock, &i_offset, &prevoff,
394 (i_offset & bmask));
397 i_offset = roundup2(dp->i_size, DIRBLKSIZ);
422 i_offset = 0;
425 i_offset = i_diroff;
426 if ((entryoffsetinblock = i_offset & bmask) &&
427 (error = ext2_blkatoff(vdp, (off_t)i_offset, NULL,
433 prevoff = i_offset;
438 while (i_offset < endsearch) {
444 error = ext2_blkatoff(vdp, (off_t)i_offset, NULL, &bp);
456 &entryoffsetinblock, &i_offset, &prevoff,
477 i_offset = 0;
502 * can be put in the range from dp->i_offset to
503 * dp->i_offset + dp->i_count.
506 dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ);
508 enduseful = dp->i_offset;
510 dp->i_offset = ss.slotoffset;
550 ext2_dirbad(dp, i_offset, "i_size too small");
562 dp->i_diroff = rounddown2(i_offset, DIRBLKSIZ);
576 * Return pointer to current entry in dp->i_offset,
586 dp->i_offset = i_offset;
587 if ((dp->i_offset & (DIRBLKSIZ - 1)) == 0)
590 dp->i_count = dp->i_offset - prevoff;
631 dp->i_offset = i_offset;
887 if (dp->i_offset & (dirblksize - 1))
898 auio.uio_offset = dp->i_offset;
904 auio.uio_offset = dp->i_offset;
933 * (dp->i_offset, dp->i_count) indicate how the space for the new
971 dp->i_offset == DIRBLKSIZ) {
982 * space in the directory. Here, dp->i_offset will
1014 * for the new entry in the range dp->i_offset to
1015 * dp->i_offset + dp->i_count in the directory.
1028 if (dp->i_offset + dp->i_count > dp->i_size)
1029 dp->i_size = dp->i_offset + dp->i_count;
1033 if ((error = ext2_blkatoff(dvp, (off_t)dp->i_offset, &dirbuf,
1039 * arranged that compacting the region dp->i_offset to
1040 * dp->i_offset + dp->i_count would yield the
1092 * dp->i_offset contains the offset into the directory of the
1115 ext2_blkatoff(dvp, (off_t)dp->i_offset, (char **)&ep,
1127 if ((error = ext2_blkatoff(dvp, (off_t)(dp->i_offset - dp->i_count),
1159 if ((error = ext2_blkatoff(vdp, (off_t)dp->i_offset, (char **)&ep,