Lines Matching refs:new_ip

1081 	struct inode *new_ip;  in jfs_rename()  local
1108 new_ip = d_inode(new_dentry); in jfs_rename()
1130 if ((!new_ip) || (ino != new_ip->i_ino)) { in jfs_rename()
1136 else if (new_ip) { in jfs_rename()
1143 if (new_ip) { in jfs_rename()
1144 if (!dtEmpty(new_ip)) { in jfs_rename()
1149 } else if (new_ip) { in jfs_rename()
1150 IWRITE_LOCK(new_ip, RDWRLOCK_NORMAL); in jfs_rename()
1152 rc = dquot_initialize(new_ip); in jfs_rename()
1174 if (new_ip) { in jfs_rename()
1175 mutex_lock_nested(&JFS_IP(new_ip)->commit_mutex, in jfs_rename()
1180 ino = new_ip->i_ino; in jfs_rename()
1185 drop_nlink(new_ip); in jfs_rename()
1186 if (S_ISDIR(new_ip->i_mode)) { in jfs_rename()
1187 drop_nlink(new_ip); in jfs_rename()
1188 if (new_ip->i_nlink) { in jfs_rename()
1189 mutex_unlock(&JFS_IP(new_ip)->commit_mutex); in jfs_rename()
1194 if (!S_ISDIR(old_ip->i_mode) && new_ip) in jfs_rename()
1195 IWRITE_UNLOCK(new_ip); in jfs_rename()
1196 jfs_error(new_ip->i_sb, in jfs_rename()
1202 tblk->u.ip = new_ip; in jfs_rename()
1203 } else if (new_ip->i_nlink == 0) { in jfs_rename()
1204 assert(!test_cflag(COMMIT_Nolink, new_ip)); in jfs_rename()
1206 if ((new_size = commitZeroLink(tid, new_ip)) < 0) { in jfs_rename()
1213 tblk->u.ip = new_ip; in jfs_rename()
1215 new_ip->i_ctime = current_time(new_ip); in jfs_rename()
1216 mark_inode_dirty(new_ip); in jfs_rename()
1287 if (new_ip) in jfs_rename()
1288 iplist[ipcount++] = new_ip; in jfs_rename()
1311 if (new_ip) in jfs_rename()
1312 mutex_unlock(&JFS_IP(new_ip)->commit_mutex); in jfs_rename()
1319 tid = txBegin(new_ip->i_sb, 0); in jfs_rename()
1320 mutex_lock(&JFS_IP(new_ip)->commit_mutex); in jfs_rename()
1321 new_size = xtTruncate_pmap(tid, new_ip, new_size); in jfs_rename()
1326 rc = txCommit(tid, 1, &new_ip, COMMIT_SYNC); in jfs_rename()
1328 mutex_unlock(&JFS_IP(new_ip)->commit_mutex); in jfs_rename()
1330 if (new_ip && (new_ip->i_nlink == 0)) in jfs_rename()
1331 set_cflag(COMMIT_Nolink, new_ip); in jfs_rename()
1343 if (new_ip && !S_ISDIR(new_ip->i_mode)) in jfs_rename()
1344 IWRITE_UNLOCK(new_ip); in jfs_rename()