Lines Matching defs:ip
69 xfs_inode_t *ip;
97 &ialloc_context, &call_again, &ip);
108 if (!call_again && (ip == NULL)) {
201 okalloc, &ialloc_context, &call_again, &ip);
212 ASSERT ((!call_again) && (ip != NULL));
220 *ipp = ip;
234 xfs_inode_t *ip)
238 xfs_ichgtime(ip, XFS_ICHGTIME_CHG);
240 ASSERT (ip->i_d.di_nlink > 0);
241 ip->i_d.di_nlink--;
242 drop_nlink(VFS_I(ip));
243 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE);
246 if (ip->i_d.di_nlink == 0) {
253 error = xfs_iunlink(tp, ip);
268 xfs_inode_t *ip)
272 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
273 ASSERT(ip->i_d.di_version == 1);
275 ip->i_d.di_version = 2;
276 ip->i_d.di_onlink = 0;
277 memset(&(ip->i_d.di_pad[0]), 0, sizeof(ip->i_d.di_pad));
298 xfs_inode_t *ip)
300 if (ip->i_d.di_nlink >= XFS_MAXLINK)
302 xfs_ichgtime(ip, XFS_ICHGTIME_CHG);
304 ASSERT(ip->i_d.di_nlink > 0);
305 ip->i_d.di_nlink++;
306 inc_nlink(VFS_I(ip));
307 if ((ip->i_d.di_version == 1) &&
308 (ip->i_d.di_nlink > XFS_MAXLINK_1)) {
317 xfs_bump_ino_vers2(tp, ip);
320 xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE);