Lines Matching refs:ip
88 static void ffs_ifree(struct ufsmount *ump, struct inode *ip);
625 struct inode *ip;
756 ip = VTOI(vp);
758 bread(devvp, fsbtodb(fs, ino_to_fsba(fs, ip->i_number)),
766 ffs_load_inode(bp, ip, fs, ip->i_number);
767 ip->i_effnlink = ip->i_nlink;
1427 sync_doupdate(struct inode *ip)
1430 return ((ip->i_flag & (IN_ACCESS | IN_CHANGE | IN_MODIFIED |
1445 struct inode *ip;
1462 ip = VTOI(vp);
1471 if (!sync_doupdate(ip) && (vp->v_iflag & VI_OWEINACT) == 0) {
1481 if (sync_doupdate(ip))
1509 struct inode *ip;
1566 ip = VTOI(vp);
1567 if ((ip->i_flag &
1656 struct inode *ip;
1684 ip = uma_zalloc(uma_inode, M_WAITOK | M_ZERO);
1691 uma_zfree(uma_inode, ip);
1699 vp->v_data = ip;
1701 ip->i_vnode = vp;
1702 ip->i_ump = ump;
1703 ip->i_number = ino;
1704 ip->i_ea_refs = 0;
1705 ip->i_nextclustercg = -1;
1706 ip->i_flag = fs->fs_magic == FS_UFS1_MAGIC ? 0 : IN_UFS2;
1711 ip->i_dquot[i] = NODQUOT;
1719 uma_zfree(uma_inode, ip);
1743 if (I_IS_UFS1(ip))
1744 ip->i_din1 = uma_zalloc(uma_ufs1, M_WAITOK);
1746 ip->i_din2 = uma_zalloc(uma_ufs2, M_WAITOK);
1747 ffs_load_inode(bp, ip, fs, ino);
1749 softdep_load_inodeblock(ip);
1751 ip->i_effnlink = ip->i_nlink;
1758 error = ufs_vinit(mp, I_IS_UFS1(ip) ? &ffs_fifoops1 : &ffs_fifoops2,
1778 if (ip->i_gen == 0) {
1779 while (ip->i_gen == 0)
1780 ip->i_gen = arc4random();
1782 ip->i_flag |= IN_MODIFIED;
1783 DIP_SET(ip, i_gen, ip->i_gen);
1787 if ((mp->mnt_flag & MNT_MULTILABEL) && ip->i_mode) {
1795 /* ufs_inactive will release ip->i_devvp ref. */
2008 ffs_ifree(struct ufsmount *ump, struct inode *ip)
2011 if (ump->um_fstype == UFS1 && ip->i_din1 != NULL)
2012 uma_zfree(uma_ufs1, ip->i_din1);
2013 else if (ip->i_din2 != NULL)
2014 uma_zfree(uma_ufs2, ip->i_din2);
2015 uma_zfree(uma_inode, ip);