Home
last modified time | relevance | path

Searched refs:old_inode (Results 1 – 22 of 22) sorted by relevance

/fs/ufs/
Dnamei.c276 struct inode *old_inode = old_dentry->d_inode; in ufs_rename() local
288 if (S_ISDIR(old_inode->i_mode)) { in ufs_rename()
290 dir_de = ufs_dotdot(old_inode, &dir_page); in ufs_rename()
307 inode_inc_link_count(old_inode); in ufs_rename()
308 ufs_set_link(new_dir, new_de, new_page, old_inode); in ufs_rename()
319 inode_inc_link_count(old_inode); in ufs_rename()
320 err = ufs_add_link(new_dentry, old_inode); in ufs_rename()
322 inode_dec_link_count(old_inode); in ufs_rename()
334 old_inode->i_ctime = CURRENT_TIME_SEC; in ufs_rename()
337 inode_dec_link_count(old_inode); in ufs_rename()
[all …]
/fs/fat/
Dnamei_msdos.c452 struct inode *old_inode, *new_inode; in do_msdos_rename() local
459 old_inode = old_dentry->d_inode; in do_msdos_rename()
468 is_dir = S_ISDIR(old_inode->i_mode); in do_msdos_rename()
471 if (fat_get_dotdot_entry(old_inode, &dotdot_bh, &dotdot_de, in do_msdos_rename()
478 old_attrs = MSDOS_I(old_inode)->i_attrs; in do_msdos_rename()
488 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename()
490 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename()
492 err = fat_sync_inode(old_inode); in do_msdos_rename()
494 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename()
498 mark_inode_dirty(old_inode); in do_msdos_rename()
[all …]
Dnamei_vfat.c912 struct inode *old_inode, *new_inode; in vfat_rename() local
920 old_inode = old_dentry->d_inode; in vfat_rename()
927 is_dir = S_ISDIR(old_inode->i_mode); in vfat_rename()
930 if (fat_get_dotdot_entry(old_inode, &dotdot_bh, &dotdot_de, in vfat_rename()
955 fat_detach(old_inode); in vfat_rename()
956 fat_attach(old_inode, new_i_pos); in vfat_rename()
958 err = fat_sync_inode(old_inode); in vfat_rename()
962 mark_inode_dirty(old_inode); in vfat_rename()
1016 fat_detach(old_inode); in vfat_rename()
1017 fat_attach(old_inode, old_sinfo.i_pos); in vfat_rename()
/fs/minix/
Dnamei.c192 struct inode * old_inode = old_dentry->d_inode; in minix_rename() local
204 if (S_ISDIR(old_inode->i_mode)) { in minix_rename()
206 dir_de = minix_dotdot(old_inode, &dir_page); in minix_rename()
223 inode_inc_link_count(old_inode); in minix_rename()
224 minix_set_link(new_de, new_page, old_inode); in minix_rename()
235 inode_inc_link_count(old_inode); in minix_rename()
236 err = minix_add_link(new_dentry, old_inode); in minix_rename()
238 inode_dec_link_count(old_inode); in minix_rename()
246 inode_dec_link_count(old_inode); in minix_rename()
/fs/ext2/
Dnamei.c291 struct inode * old_inode = old_dentry->d_inode; in ext2_rename() local
303 if (S_ISDIR(old_inode->i_mode)) { in ext2_rename()
305 dir_de = ext2_dotdot(old_inode, &dir_page); in ext2_rename()
322 inode_inc_link_count(old_inode); in ext2_rename()
323 ext2_set_link(new_dir, new_de, new_page, old_inode); in ext2_rename()
334 inode_inc_link_count(old_inode); in ext2_rename()
335 err = ext2_add_link(new_dentry, old_inode); in ext2_rename()
337 inode_dec_link_count(old_inode); in ext2_rename()
349 old_inode->i_ctime = CURRENT_TIME_SEC; in ext2_rename()
352 inode_dec_link_count(old_inode); in ext2_rename()
[all …]
/fs/sysv/
Dnamei.c217 struct inode * old_inode = old_dentry->d_inode; in sysv_rename() local
229 if (S_ISDIR(old_inode->i_mode)) { in sysv_rename()
231 dir_de = sysv_dotdot(old_inode, &dir_page); in sysv_rename()
248 inode_inc_link_count(old_inode); in sysv_rename()
249 sysv_set_link(new_de, new_page, old_inode); in sysv_rename()
260 inode_inc_link_count(old_inode); in sysv_rename()
261 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
263 inode_dec_link_count(old_inode); in sysv_rename()
271 inode_dec_link_count(old_inode); in sysv_rename()
/fs/reiserfs/
Dnamei.c1235 struct inode *old_inode, *new_dentry_inode; in reiserfs_rename() local
1254 old_inode = old_dentry->d_inode; in reiserfs_rename()
1271 if (retval != NAME_FOUND || old_de.de_objectid != old_inode->i_ino) { in reiserfs_rename()
1276 old_inode_mode = old_inode->i_mode; in reiserfs_rename()
1294 reiserfs_find_entry(old_inode, "..", 2, &dot_dot_entry_path, in reiserfs_rename()
1318 new_dentry->d_name.len, old_inode, 0); in reiserfs_rename()
1336 reiserfs_update_inode_transaction(old_inode); in reiserfs_rename()
1355 reiserfs_prepare_for_journal(old_inode->i_sb, old_de.de_bh, 1); in reiserfs_rename()
1375 reiserfs_prepare_for_journal(old_inode->i_sb, new_de.de_bh, 1); in reiserfs_rename()
1377 if (S_ISDIR(old_inode->i_mode)) { in reiserfs_rename()
[all …]
/fs/bfs/
Ddir.c224 struct inode *old_inode, *new_inode; in bfs_rename() local
231 old_inode = old_dentry->d_inode; in bfs_rename()
232 if (S_ISDIR(old_inode->i_mode)) in bfs_rename()
235 info = BFS_SB(old_inode->i_sb); in bfs_rename()
242 if (!old_bh || (le16_to_cpu(old_de->ino) != old_inode->i_ino)) in bfs_rename()
259 old_inode->i_ino); in bfs_rename()
/fs/ocfs2/
Dnamei.c1009 struct inode *old_inode = old_dentry->d_inode; in ocfs2_rename() local
1057 if (old_dir != new_dir && S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1094 status = ocfs2_inode_lock(old_inode, &old_inode_bh, 1); in ocfs2_rename()
1108 if (S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1112 old_inode, &old_inode_de_bh, in ocfs2_rename()
1145 if (old_de_ino != OCFS2_I(old_inode)->ip_blkno) { in ocfs2_rename()
1289 new_de, old_inode); in ocfs2_rename()
1308 status = ocfs2_add_entry(handle, new_dentry, old_inode, in ocfs2_rename()
1309 OCFS2_I(old_inode)->ip_blkno, in ocfs2_rename()
1313 old_inode->i_ctime = CURRENT_TIME; in ocfs2_rename()
[all …]
/fs/omfs/
Ddir.c393 struct inode *old_inode = old_dentry->d_inode; in omfs_rename() local
398 is_dir = S_ISDIR(old_inode->i_mode); in omfs_rename()
420 inode_inc_link_count(old_inode); in omfs_rename()
423 inode_dec_link_count(old_inode); in omfs_rename()
427 err = omfs_add_link(new_dentry, old_inode); in omfs_rename()
431 old_inode->i_ctime = CURRENT_TIME_SEC; in omfs_rename()
/fs/ubifs/
Ddir.c971 struct inode *old_inode = old_dentry->d_inode; in ubifs_rename() local
973 struct ubifs_inode *old_inode_ui = ubifs_inode(old_inode); in ubifs_rename()
975 int is_dir = S_ISDIR(old_inode->i_mode); in ubifs_rename()
996 old_inode->i_ino, old_dir->i_ino, new_dentry->d_name.len, in ubifs_rename()
1026 old_inode->i_ctime = time; in ubifs_rename()
1083 if (IS_SYNC(old_inode)) { in ubifs_rename()
1098 mark_inode_dirty_sync(old_inode); in ubifs_rename()
1103 if (IS_SYNC(old_inode)) in ubifs_rename()
1104 err = old_inode->i_sb->s_op->write_inode(old_inode, 1); in ubifs_rename()
Djournal.c907 const struct inode *old_inode = old_dentry->d_inode; in ubifs_jnl_rename() local
951 dent->inum = cpu_to_le64(old_inode->i_ino); in ubifs_jnl_rename()
952 dent->type = get_dent_type(old_inode->i_mode); in ubifs_jnl_rename()
/fs/udf/
Dnamei.c1104 struct inode *old_inode = old_dentry->d_inode; in udf_rename() local
1112 struct udf_inode_info *old_iinfo = UDF_I(old_inode); in udf_rename()
1123 != old_inode->i_ino) in udf_rename()
1135 if (S_ISDIR(old_inode->i_mode)) { in udf_rename()
1136 int offset = udf_ext0_offset(old_inode); in udf_rename()
1150 old_inode->i_sb->s_blocksize, &offset); in udf_rename()
1152 dir_bh = udf_bread(old_inode, 0, 0, &retval); in udf_rename()
1156 old_inode->i_sb->s_blocksize, &offset); in udf_rename()
1161 if (udf_get_lb_pblock(old_inode->i_sb, tloc, 0) != in udf_rename()
1182 old_inode->i_ctime = current_fs_time(old_inode->i_sb); in udf_rename()
[all …]
/fs/
Dfs-writeback.c529 struct inode *inode, *old_inode = NULL; in generic_sync_sb_inodes() local
556 iput(old_inode); in generic_sync_sb_inodes()
557 old_inode = inode; in generic_sync_sb_inodes()
566 iput(old_inode); in generic_sync_sb_inodes()
Ddquot.c788 struct inode *inode, *old_inode = NULL; in add_dquot_ref() local
802 iput(old_inode); in add_dquot_ref()
809 old_inode = inode; in add_dquot_ref()
813 iput(old_inode); in add_dquot_ref()
/fs/ncpfs/
Ddir.c215 struct inode *old_inode = old_dentry->d_inode; in ncp_force_rename() local
216 __le32 old_nwattr = NCP_FINFO(old_inode)->nwattr; in ncp_force_rename()
226 …res2 = ncp_modify_file_or_subdir_dos_info_path(NCP_SERVER(old_inode), old_inode, NULL, DM_ATTRIBUT… in ncp_force_rename()
255 …res2 = ncp_modify_file_or_subdir_dos_info_path(NCP_SERVER(old_inode), old_inode, NULL, DM_ATTRIBUT… in ncp_force_rename()
/fs/ext4/
Dnamei.c2311 struct inode *old_inode, *new_inode; in ext4_rename() local
2338 old_inode = old_dentry->d_inode; in ext4_rename()
2340 if (!old_bh || le32_to_cpu(old_de->inode) != old_inode->i_ino) in ext4_rename()
2351 if (S_ISDIR(old_inode->i_mode)) { in ext4_rename()
2358 dir_bh = ext4_bread(handle, old_inode, 0, 0, &retval); in ext4_rename()
2369 retval = ext4_add_entry(handle, new_dentry, old_inode); in ext4_rename()
2375 new_de->inode = cpu_to_le32(old_inode->i_ino); in ext4_rename()
2393 old_inode->i_ctime = ext4_current_time(old_inode); in ext4_rename()
2394 ext4_mark_inode_dirty(handle, old_inode); in ext4_rename()
2399 if (le32_to_cpu(old_de->inode) != old_inode->i_ino || in ext4_rename()
/fs/ext3/
Dnamei.c2265 struct inode * old_inode, * new_inode; in ext3_rename() local
2292 old_inode = old_dentry->d_inode; in ext3_rename()
2294 if (!old_bh || le32_to_cpu(old_de->inode) != old_inode->i_ino) in ext3_rename()
2305 if (S_ISDIR(old_inode->i_mode)) { in ext3_rename()
2312 dir_bh = ext3_bread (handle, old_inode, 0, 0, &retval); in ext3_rename()
2323 retval = ext3_add_entry (handle, new_dentry, old_inode); in ext3_rename()
2329 new_de->inode = cpu_to_le32(old_inode->i_ino); in ext3_rename()
2346 old_inode->i_ctime = CURRENT_TIME_SEC; in ext3_rename()
2347 ext3_mark_inode_dirty(handle, old_inode); in ext3_rename()
2352 if (le32_to_cpu(old_de->inode) != old_inode->i_ino || in ext3_rename()
/fs/nfs/
Ddir.c1576 struct inode *old_inode = old_dentry->d_inode; in nfs_rename() local
1607 if (!S_ISDIR(old_inode->i_mode)) in nfs_rename()
1635 if (S_ISREG(old_inode->i_mode)) in nfs_rename()
1636 nfs_wb_all(old_inode); in nfs_rename()
1639 nfs_inode_return_delegation(old_inode); in nfs_rename()
1648 nfs_mark_for_revalidate(old_inode); in nfs_rename()
/fs/9p/
Dvfs_inode.c679 struct inode *old_inode; in v9fs_vfs_rename() local
689 old_inode = old_dentry->d_inode; in v9fs_vfs_rename()
690 v9ses = v9fs_inode2v9ses(old_inode); in v9fs_vfs_rename()
/fs/coda/
Ddir.c41 static int coda_rename(struct inode *old_inode, struct dentry *old_dentry,
/fs/btrfs/
Dinode.c4583 struct inode *old_inode = old_dentry->d_inode; in btrfs_rename() local
4589 if (BTRFS_I(old_inode)->root->root_key.objectid != in btrfs_rename()
4593 if (S_ISDIR(old_inode->i_mode) && new_inode && in btrfs_rename()
4601 if (old_inode->i_ino == BTRFS_FIRST_FREE_OBJECTID) in btrfs_rename()
4615 old_inode->i_ctime = ctime; in btrfs_rename()
4643 old_inode, new_dentry->d_name.name, in btrfs_rename()