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

Lines Matching refs:ip

155 	struct inode *ip;
168 ip = VTOI(vp);
174 if (uio->uio_offset >= ip->i_size)
176 else if (ip->i_size - uio->uio_offset < ncookies)
177 ncookies = ip->i_size - uio->uio_offset;
191 uio->uio_offset < ip->i_size) {
195 if (bp->b_offset + bp->b_bcount > ip->i_size)
196 readcnt = ip->i_size - bp->b_offset;
282 *ap->a_eofflag = ip->i_size <= uio->uio_offset;
720 ext2_search_dirblock(struct inode *ip, void *data, int *foundp,
727 uint32_t bsize = ip->i_e2fs->e2fs_bsize;
731 vdp = ITOV(ip);
746 ext2_dirbad(ip, *offp, "mangled entry");
764 else if (ext2_is_dirent_tail(ip, ep))
816 ext2_dirbad(struct inode *ip, doff_t offset, char *how)
820 mp = ITOV(ip)->v_mount;
823 mp->mnt_stat.f_mntonname, (uintmax_t)ip->i_number,
827 mp->mnt_stat.f_mntonname, ip->i_number, offset, how);
930 * that it left in nameidata. The argument ip is the inode which the new
937 ext2_direnter(struct inode *ip, struct vnode *dvp, struct componentname *cnp)
941 int DIRBLKSIZ = ip->i_e2fs->e2fs_bsize;
950 newdir.e2d_ino = ip->i_number;
952 if (EXT2_HAS_INCOMPAT_FEATURE(ip->i_e2fs,
954 newdir.e2d_type = DTTOFT(IFTODT(ip->i_mode));
968 if (EXT2_HAS_COMPAT_FEATURE(ip->i_e2fs, EXT2F_COMPAT_DIRHASHINDEX) &&
1152 ext2_dirrewrite(struct inode *dp, struct inode *ip, struct componentname *cnp)
1162 ep->e2d_ino = ip->i_number;
1163 if (EXT2_HAS_INCOMPAT_FEATURE(ip->i_e2fs,
1165 ep->e2d_type = DTTOFT(IFTODT(ip->i_mode));
1184 ext2_dirempty(struct inode *ip, ino_t parentino, struct ucred *cred)
1193 for (off = 0; off < ip->i_size; off += dp->e2d_reclen) {
1194 error = vn_rdwr(UIO_READ, ITOV(ip), (caddr_t)dp, MINDIRSIZ,