Home
last modified time | relevance | path

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

/fs/fat/
Dnamei_msdos.c436 struct inode *old_inode, *new_inode; in do_msdos_rename() local
443 old_inode = d_inode(old_dentry); in do_msdos_rename()
452 is_dir = S_ISDIR(old_inode->i_mode); in do_msdos_rename()
455 if (fat_get_dotdot_entry(old_inode, &dotdot_bh, &dotdot_de)) { in do_msdos_rename()
461 old_attrs = MSDOS_I(old_inode)->i_attrs; in do_msdos_rename()
471 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename()
473 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename()
475 err = fat_sync_inode(old_inode); in do_msdos_rename()
477 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename()
481 mark_inode_dirty(old_inode); in do_msdos_rename()
[all …]
Dnamei_vfat.c922 struct inode *old_inode, *new_inode; in vfat_rename() local
933 old_inode = d_inode(old_dentry); in vfat_rename()
940 is_dir = S_ISDIR(old_inode->i_mode); in vfat_rename()
943 if (fat_get_dotdot_entry(old_inode, &dotdot_bh, &dotdot_de)) { in vfat_rename()
967 fat_detach(old_inode); in vfat_rename()
968 fat_attach(old_inode, new_i_pos); in vfat_rename()
970 err = fat_sync_inode(old_inode); in vfat_rename()
974 mark_inode_dirty(old_inode); in vfat_rename()
978 mark_buffer_dirty_inode(dotdot_bh, old_inode); in vfat_rename()
1020 mark_buffer_dirty_inode(dotdot_bh, old_inode); in vfat_rename()
[all …]
/fs/ufs/
Dnamei.c251 struct inode *old_inode = d_inode(old_dentry); in ufs_rename() local
266 if (S_ISDIR(old_inode->i_mode)) { in ufs_rename()
268 dir_de = ufs_dotdot(old_inode, &dir_page); in ufs_rename()
285 ufs_set_link(new_dir, new_de, new_page, old_inode, 1); in ufs_rename()
291 err = ufs_add_link(new_dentry, old_inode); in ufs_rename()
302 old_inode->i_ctime = current_time(old_inode); in ufs_rename()
305 mark_inode_dirty(old_inode); in ufs_rename()
309 ufs_set_link(old_inode, dir_de, dir_page, new_dir, 0); in ufs_rename()
/fs/exofs/
Dnamei.c233 struct inode *old_inode = d_inode(old_dentry); in exofs_rename() local
248 if (S_ISDIR(old_inode->i_mode)) { in exofs_rename()
250 dir_de = exofs_dotdot(old_inode, &dir_page); in exofs_rename()
267 err = exofs_set_link(new_dir, new_de, new_page, old_inode); in exofs_rename()
275 err = exofs_add_link(new_dentry, old_inode); in exofs_rename()
282 old_inode->i_ctime = current_time(old_inode); in exofs_rename()
285 mark_inode_dirty(old_inode); in exofs_rename()
288 err = exofs_set_link(old_inode, dir_de, dir_page, new_dir); in exofs_rename()
/fs/ext2/
Dnamei.c334 struct inode * old_inode = d_inode(old_dentry); in ext2_rename() local
359 if (S_ISDIR(old_inode->i_mode)) { in ext2_rename()
361 dir_de = ext2_dotdot(old_inode, &dir_page); in ext2_rename()
378 ext2_set_link(new_dir, new_de, new_page, old_inode, 1); in ext2_rename()
384 err = ext2_add_link(new_dentry, old_inode); in ext2_rename()
395 old_inode->i_ctime = current_time(old_inode); in ext2_rename()
396 mark_inode_dirty(old_inode); in ext2_rename()
402 ext2_set_link(old_inode, dir_de, dir_page, new_dir, 0); in ext2_rename()
/fs/f2fs/
Dnamei.c818 struct inode *old_inode = d_inode(old_dentry); in f2fs_rename() local
858 if (S_ISDIR(old_inode->i_mode)) { in f2fs_rename()
859 old_dir_entry = f2fs_parent_dir(old_inode, &old_dir_page); in f2fs_rename()
896 f2fs_set_link(new_dir, new_entry, new_page, old_inode); in f2fs_rename()
914 err = f2fs_add_link(new_dentry, old_inode); in f2fs_rename()
946 down_write(&F2FS_I(old_inode)->i_sem); in f2fs_rename()
948 file_lost_pino(old_inode); in f2fs_rename()
950 F2FS_I(old_inode)->i_pino = new_dir->i_ino; in f2fs_rename()
951 up_write(&F2FS_I(old_inode)->i_sem); in f2fs_rename()
953 old_inode->i_ctime = current_time(old_inode); in f2fs_rename()
[all …]
/fs/reiserfs/
Dnamei.c1318 struct inode *old_inode, *new_dentry_inode; in reiserfs_rename() local
1349 old_inode = d_inode(old_dentry); in reiserfs_rename()
1368 if (retval != NAME_FOUND || old_de.de_objectid != old_inode->i_ino) { in reiserfs_rename()
1373 old_inode_mode = old_inode->i_mode; in reiserfs_rename()
1393 reiserfs_find_entry(old_inode, "..", 2, &dot_dot_entry_path, in reiserfs_rename()
1417 new_dentry->d_name.len, old_inode, 0); in reiserfs_rename()
1436 reiserfs_update_inode_transaction(old_inode); in reiserfs_rename()
1458 reiserfs_prepare_for_journal(old_inode->i_sb, old_de.de_bh, 1); in reiserfs_rename()
1482 reiserfs_prepare_for_journal(old_inode->i_sb, new_de.de_bh, 1); in reiserfs_rename()
1484 if (S_ISDIR(old_inode->i_mode)) { in reiserfs_rename()
[all …]
/fs/minix/
Dnamei.c191 struct inode * old_inode = d_inode(old_dentry); in minix_rename() local
206 if (S_ISDIR(old_inode->i_mode)) { in minix_rename()
208 dir_de = minix_dotdot(old_inode, &dir_page); in minix_rename()
225 minix_set_link(new_de, new_page, old_inode); in minix_rename()
231 err = minix_add_link(new_dentry, old_inode); in minix_rename()
239 mark_inode_dirty(old_inode); in minix_rename()
/fs/sysv/
Dnamei.c212 struct inode * old_inode = d_inode(old_dentry); in sysv_rename() local
227 if (S_ISDIR(old_inode->i_mode)) { in sysv_rename()
229 dir_de = sysv_dotdot(old_inode, &dir_page); in sysv_rename()
246 sysv_set_link(new_de, new_page, old_inode); in sysv_rename()
252 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
260 mark_inode_dirty(old_inode); in sysv_rename()
/fs/nilfs2/
Dnamei.c356 struct inode *old_inode = d_inode(old_dentry); in nilfs_rename() local
377 if (S_ISDIR(old_inode->i_mode)) { in nilfs_rename()
379 dir_de = nilfs_dotdot(old_inode, &dir_page); in nilfs_rename()
396 nilfs_set_link(new_dir, new_de, new_page, old_inode); in nilfs_rename()
404 err = nilfs_add_link(new_dentry, old_inode); in nilfs_rename()
417 old_inode->i_ctime = current_time(old_inode); in nilfs_rename()
422 nilfs_set_link(old_inode, dir_de, dir_page, new_dir); in nilfs_rename()
426 nilfs_mark_inode_dirty(old_inode); in nilfs_rename()
/fs/bfs/
Ddir.c213 struct inode *old_inode, *new_inode; in bfs_rename() local
223 old_inode = d_inode(old_dentry); in bfs_rename()
224 if (S_ISDIR(old_inode->i_mode)) in bfs_rename()
227 info = BFS_SB(old_inode->i_sb); in bfs_rename()
234 if (!old_bh || (le16_to_cpu(old_de->ino) != old_inode->i_ino)) in bfs_rename()
251 old_inode->i_ino); in bfs_rename()
/fs/udf/
Dnamei.c1099 struct inode *old_inode = d_inode(old_dentry); in udf_rename() local
1107 struct udf_inode_info *old_iinfo = UDF_I(old_inode); in udf_rename()
1124 != old_inode->i_ino) in udf_rename()
1138 if (S_ISDIR(old_inode->i_mode)) { in udf_rename()
1139 int offset = udf_ext0_offset(old_inode); in udf_rename()
1153 old_inode->i_sb->s_blocksize, &offset); in udf_rename()
1155 dir_bh = udf_bread(old_inode, 0, 0, &retval); in udf_rename()
1159 old_inode->i_sb->s_blocksize, &offset); in udf_rename()
1164 if (udf_get_lb_pblock(old_inode->i_sb, &tloc, 0) != in udf_rename()
1179 old_inode->i_ctime = current_time(old_inode); in udf_rename()
[all …]
/fs/ocfs2/
Dnamei.c1211 struct inode *old_inode = d_inode(old_dentry); in ocfs2_rename() local
1271 if (old_dir != new_dir && S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1282 old_inode->i_ino); in ocfs2_rename()
1289 (unsigned long long)old_inode->i_ino, in ocfs2_rename()
1328 status = ocfs2_inode_lock_nested(old_inode, &old_inode_bh, 1, in ocfs2_rename()
1343 if (S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1348 old_inode, in ocfs2_rename()
1381 if (old_de_ino != OCFS2_I(old_inode)->ip_blkno) { in ocfs2_rename()
1516 old_inode); in ocfs2_rename()
1539 status = ocfs2_add_entry(handle, new_dentry, old_inode, in ocfs2_rename()
[all …]
Dxattr.h90 int ocfs2_reflink_xattrs(struct inode *old_inode,
Dxattr.c6191 struct inode *old_inode; member
6355 struct super_block *sb = args->old_inode->i_sb; in ocfs2_reflink_xattr_header()
6425 ret = ocfs2_xattr_get_clusters(args->old_inode, in ocfs2_reflink_xattr_header()
6442 args->old_inode->i_sb, in ocfs2_reflink_xattr_header()
6473 struct ocfs2_super *osb = OCFS2_SB(args->old_inode->i_sb); in ocfs2_reflink_xattr_inline()
6761 struct ocfs2_super *osb = OCFS2_SB(args->reflink->old_inode->i_sb); in ocfs2_lock_reflink_xattr_rec_allocators()
6766 ret = ocfs2_iterate_xattr_buckets(args->reflink->old_inode, blkno, len, in ocfs2_lock_reflink_xattr_rec_allocators()
6846 struct super_block *sb = args->reflink->old_inode->i_sb; in ocfs2_reflink_xattr_bucket()
7070 para.old_bucket = ocfs2_xattr_bucket_new(args->old_inode); in ocfs2_reflink_xattr_tree()
7083 ret = ocfs2_iterate_xattr_index_block(args->old_inode, blk_bh, in ocfs2_reflink_xattr_tree()
[all …]
/fs/omfs/
Ddir.c378 struct inode *old_inode = d_inode(old_dentry); in omfs_rename() local
398 err = omfs_add_link(new_dentry, old_inode); in omfs_rename()
402 old_inode->i_ctime = current_time(old_inode); in omfs_rename()
403 mark_inode_dirty(old_inode); in omfs_rename()
/fs/ubifs/
Ddir.c1081 struct inode *old_inode = d_inode(old_dentry); in do_rename() local
1084 struct ubifs_inode *old_inode_ui = ubifs_inode(old_inode); in do_rename()
1087 int is_dir = S_ISDIR(old_inode->i_mode); in do_rename()
1108 old_dentry, old_inode->i_ino, old_dir->i_ino, in do_rename()
1161 old_inode->i_ctime = time; in do_rename()
1219 if (IS_SYNC(old_inode)) { in do_rename()
1256 mark_inode_dirty_sync(old_inode); in do_rename()
1261 if (IS_SYNC(old_inode)) in do_rename()
1262 err = old_inode->i_sb->s_op->write_inode(old_inode, NULL); in do_rename()
Djournal.c1075 const struct inode *old_inode = d_inode(old_dentry); in ubifs_jnl_rename() local
1117 dent->inum = cpu_to_le64(old_inode->i_ino); in ubifs_jnl_rename()
1118 dent->type = get_dent_type(old_inode->i_mode); in ubifs_jnl_rename()
/fs/ncpfs/
Ddir.c256 struct inode *old_inode = d_inode(old_dentry); in ncp_force_rename() local
257 __le32 old_nwattr = NCP_FINFO(old_inode)->nwattr; in ncp_force_rename()
267 …res2 = ncp_modify_file_or_subdir_dos_info_path(NCP_SERVER(old_inode), old_inode, NULL, DM_ATTRIBUT… in ncp_force_rename()
296 …res2 = ncp_modify_file_or_subdir_dos_info_path(NCP_SERVER(old_inode), old_inode, NULL, DM_ATTRIBUT… in ncp_force_rename()
/fs/9p/
Dvfs_inode.c965 struct inode *old_inode; in v9fs_vfs_rename() local
978 old_inode = d_inode(old_dentry); in v9fs_vfs_rename()
980 v9ses = v9fs_inode2v9ses(old_inode); in v9fs_vfs_rename()
1029 if (S_ISDIR(old_inode->i_mode)) { in v9fs_vfs_rename()
1034 v9fs_invalidate_inode_attr(old_inode); in v9fs_vfs_rename()
/fs/logfs/
Ddir.c662 struct inode *old_inode = d_inode(old_dentry); in logfs_rename_target() local
664 int isdir = S_ISDIR(old_inode->i_mode); in logfs_rename_target()
693 err = logfs_replace_inode(new_dir, new_dentry, &dd, old_inode); in logfs_rename_target()
/fs/btrfs/
Dinode.c9562 struct inode *old_inode = old_dentry->d_inode; in btrfs_rename_exchange() local
9563 struct timespec ctime = current_time(old_inode); in btrfs_rename_exchange()
9565 u64 old_ino = btrfs_ino(old_inode); in btrfs_rename_exchange()
9609 BTRFS_I(old_inode)->dir_index = 0ULL; in btrfs_rename_exchange()
9647 inode_inc_iversion(old_inode); in btrfs_rename_exchange()
9651 old_inode->i_ctime = ctime; in btrfs_rename_exchange()
9655 btrfs_record_unlink_dir(trans, old_dir, old_inode, 1); in btrfs_rename_exchange()
9661 root_objectid = BTRFS_I(old_inode)->root->root_key.objectid; in btrfs_rename_exchange()
9672 ret = btrfs_update_inode(trans, root, old_inode); in btrfs_rename_exchange()
9699 ret = btrfs_add_link(trans, new_dir, old_inode, in btrfs_rename_exchange()
[all …]
/fs/
Dblock_dev.c1948 struct inode *inode, *old_inode = NULL; in iterate_bdevs() local
1972 iput(old_inode); in iterate_bdevs()
1973 old_inode = inode; in iterate_bdevs()
1984 iput(old_inode); in iterate_bdevs()
/fs/nfs/
Ddir.c2027 struct inode *old_inode = d_inode(old_dentry); in nfs_rename() local
2077 NFS_PROTO(old_inode)->return_delegation(old_inode); in nfs_rename()
2091 nfs_mark_for_revalidate(old_inode); in nfs_rename()
/fs/quota/
Ddquot.c941 struct inode *inode, *old_inode = NULL; in add_dquot_ref() local
963 iput(old_inode); in add_dquot_ref()
974 old_inode = inode; in add_dquot_ref()
978 iput(old_inode); in add_dquot_ref()