Home
last modified time | relevance | path

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

/fs/fat/
Dnamei_msdos.c434 struct inode *old_inode, *new_inode; in do_msdos_rename() local
441 old_inode = d_inode(old_dentry); in do_msdos_rename()
450 is_dir = S_ISDIR(old_inode->i_mode); in do_msdos_rename()
453 if (fat_get_dotdot_entry(old_inode, &dotdot_bh, &dotdot_de)) { in do_msdos_rename()
459 old_attrs = MSDOS_I(old_inode)->i_attrs; in do_msdos_rename()
469 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename()
471 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename()
473 err = fat_sync_inode(old_inode); in do_msdos_rename()
475 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename()
479 mark_inode_dirty(old_inode); in do_msdos_rename()
[all …]
Dnamei_vfat.c901 struct inode *old_inode, *new_inode; in vfat_rename() local
912 old_inode = d_inode(old_dentry); in vfat_rename()
919 is_dir = S_ISDIR(old_inode->i_mode); in vfat_rename()
922 if (fat_get_dotdot_entry(old_inode, &dotdot_bh, &dotdot_de)) { in vfat_rename()
946 fat_detach(old_inode); in vfat_rename()
947 fat_attach(old_inode, new_i_pos); in vfat_rename()
949 err = fat_sync_inode(old_inode); in vfat_rename()
953 mark_inode_dirty(old_inode); in vfat_rename()
957 mark_buffer_dirty_inode(dotdot_bh, old_inode); in vfat_rename()
999 mark_buffer_dirty_inode(dotdot_bh, old_inode); in vfat_rename()
[all …]
/fs/ufs/
Dnamei.c247 struct inode *old_inode = d_inode(old_dentry); in ufs_rename() local
262 if (S_ISDIR(old_inode->i_mode)) { in ufs_rename()
264 dir_de = ufs_dotdot(old_inode, &dir_page); in ufs_rename()
281 ufs_set_link(new_dir, new_de, new_page, old_inode, 1); in ufs_rename()
287 err = ufs_add_link(new_dentry, old_inode); in ufs_rename()
298 old_inode->i_ctime = current_time(old_inode); in ufs_rename()
301 mark_inode_dirty(old_inode); in ufs_rename()
305 ufs_set_link(old_inode, dir_de, dir_page, new_dir, 0); in ufs_rename()
/fs/f2fs/
Dnamei.c849 struct inode *old_inode = d_inode(old_dentry); in f2fs_rename() local
892 if (S_ISDIR(old_inode->i_mode)) { in f2fs_rename()
893 old_dir_entry = f2fs_parent_dir(old_inode, &old_dir_page); in f2fs_rename()
930 f2fs_set_link(new_dir, new_entry, new_page, old_inode); in f2fs_rename()
948 err = f2fs_add_link(new_dentry, old_inode); in f2fs_rename()
980 down_write(&F2FS_I(old_inode)->i_sem); in f2fs_rename()
982 file_lost_pino(old_inode); in f2fs_rename()
985 f2fs_i_pino_write(old_inode, new_dir->i_ino); in f2fs_rename()
986 up_write(&F2FS_I(old_inode)->i_sem); in f2fs_rename()
988 old_inode->i_ctime = current_time(old_inode); in f2fs_rename()
[all …]
/fs/ext2/
Dnamei.c316 struct inode * old_inode = d_inode(old_dentry); in ext2_rename() local
341 if (S_ISDIR(old_inode->i_mode)) { in ext2_rename()
343 dir_de = ext2_dotdot(old_inode, &dir_page); in ext2_rename()
360 ext2_set_link(new_dir, new_de, new_page, old_inode, 1); in ext2_rename()
366 err = ext2_add_link(new_dentry, old_inode); in ext2_rename()
377 old_inode->i_ctime = current_time(old_inode); in ext2_rename()
378 mark_inode_dirty(old_inode); in ext2_rename()
384 ext2_set_link(old_inode, dir_de, dir_page, new_dir, 0); in ext2_rename()
/fs/minix/
Dnamei.c188 struct inode * old_inode = d_inode(old_dentry); in minix_rename() local
203 if (S_ISDIR(old_inode->i_mode)) { in minix_rename()
205 dir_de = minix_dotdot(old_inode, &dir_page); in minix_rename()
222 minix_set_link(new_de, new_page, old_inode); in minix_rename()
228 err = minix_add_link(new_dentry, old_inode); in minix_rename()
236 mark_inode_dirty(old_inode); in minix_rename()
/fs/sysv/
Dnamei.c193 struct inode * old_inode = d_inode(old_dentry); in sysv_rename() local
208 if (S_ISDIR(old_inode->i_mode)) { in sysv_rename()
210 dir_de = sysv_dotdot(old_inode, &dir_page); in sysv_rename()
227 sysv_set_link(new_de, new_page, old_inode); in sysv_rename()
233 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
241 mark_inode_dirty(old_inode); in sysv_rename()
/fs/reiserfs/
Dnamei.c1317 struct inode *old_inode, *new_dentry_inode; in reiserfs_rename() local
1348 old_inode = d_inode(old_dentry); in reiserfs_rename()
1367 if (retval != NAME_FOUND || old_de.de_objectid != old_inode->i_ino) { in reiserfs_rename()
1372 old_inode_mode = old_inode->i_mode; in reiserfs_rename()
1392 reiserfs_find_entry(old_inode, "..", 2, &dot_dot_entry_path, in reiserfs_rename()
1416 new_dentry->d_name.len, old_inode, 0); in reiserfs_rename()
1435 reiserfs_update_inode_transaction(old_inode); in reiserfs_rename()
1457 reiserfs_prepare_for_journal(old_inode->i_sb, old_de.de_bh, 1); in reiserfs_rename()
1481 reiserfs_prepare_for_journal(old_inode->i_sb, new_de.de_bh, 1); in reiserfs_rename()
1483 if (S_ISDIR(old_inode->i_mode)) { in reiserfs_rename()
[all …]
/fs/nilfs2/
Dnamei.c345 struct inode *old_inode = d_inode(old_dentry); in nilfs_rename() local
366 if (S_ISDIR(old_inode->i_mode)) { in nilfs_rename()
368 dir_de = nilfs_dotdot(old_inode, &dir_page); in nilfs_rename()
385 nilfs_set_link(new_dir, new_de, new_page, old_inode); in nilfs_rename()
393 err = nilfs_add_link(new_dentry, old_inode); in nilfs_rename()
406 old_inode->i_ctime = current_time(old_inode); in nilfs_rename()
411 nilfs_set_link(old_inode, dir_de, dir_page, new_dir); in nilfs_rename()
415 nilfs_mark_inode_dirty(old_inode); in nilfs_rename()
/fs/bfs/
Ddir.c206 struct inode *old_inode, *new_inode; in bfs_rename() local
216 old_inode = d_inode(old_dentry); in bfs_rename()
217 if (S_ISDIR(old_inode->i_mode)) in bfs_rename()
220 info = BFS_SB(old_inode->i_sb); in bfs_rename()
225 if (!old_bh || (le16_to_cpu(old_de->ino) != old_inode->i_ino)) in bfs_rename()
238 old_inode->i_ino); in bfs_rename()
/fs/udf/
Dnamei.c1073 struct inode *old_inode = d_inode(old_dentry); in udf_rename() local
1081 struct udf_inode_info *old_iinfo = UDF_I(old_inode); in udf_rename()
1098 != old_inode->i_ino) in udf_rename()
1112 if (S_ISDIR(old_inode->i_mode)) { in udf_rename()
1113 int offset = udf_ext0_offset(old_inode); in udf_rename()
1127 old_inode->i_sb->s_blocksize, &offset); in udf_rename()
1129 dir_bh = udf_bread(old_inode, 0, 0, &retval); in udf_rename()
1133 old_inode->i_sb->s_blocksize, &offset); in udf_rename()
1138 if (udf_get_lb_pblock(old_inode->i_sb, &tloc, 0) != in udf_rename()
1153 old_inode->i_ctime = current_time(old_inode); in udf_rename()
[all …]
/fs/ocfs2/
Dnamei.c1200 struct inode *old_inode = d_inode(old_dentry); in ocfs2_rename() local
1260 if (old_dir != new_dir && S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1271 old_inode->i_ino); in ocfs2_rename()
1278 (unsigned long long)old_inode->i_ino, in ocfs2_rename()
1317 status = ocfs2_inode_lock_nested(old_inode, &old_inode_bh, 1, in ocfs2_rename()
1332 if (S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1337 old_inode, in ocfs2_rename()
1370 if (old_de_ino != OCFS2_I(old_inode)->ip_blkno) { in ocfs2_rename()
1505 old_inode); in ocfs2_rename()
1528 status = ocfs2_add_entry(handle, new_dentry, old_inode, in ocfs2_rename()
[all …]
Dxattr.h82 int ocfs2_reflink_xattrs(struct inode *old_inode,
Dxattr.c6186 struct inode *old_inode; member
6350 struct super_block *sb = args->old_inode->i_sb; in ocfs2_reflink_xattr_header()
6420 ret = ocfs2_xattr_get_clusters(args->old_inode, in ocfs2_reflink_xattr_header()
6437 args->old_inode->i_sb, in ocfs2_reflink_xattr_header()
6468 struct ocfs2_super *osb = OCFS2_SB(args->old_inode->i_sb); in ocfs2_reflink_xattr_inline()
6756 struct ocfs2_super *osb = OCFS2_SB(args->reflink->old_inode->i_sb); in ocfs2_lock_reflink_xattr_rec_allocators()
6761 ret = ocfs2_iterate_xattr_buckets(args->reflink->old_inode, blkno, len, in ocfs2_lock_reflink_xattr_rec_allocators()
6841 struct super_block *sb = args->reflink->old_inode->i_sb; in ocfs2_reflink_xattr_bucket()
7065 para.old_bucket = ocfs2_xattr_bucket_new(args->old_inode); in ocfs2_reflink_xattr_tree()
7078 ret = ocfs2_iterate_xattr_index_block(args->old_inode, blk_bh, in ocfs2_reflink_xattr_tree()
[all …]
/fs/omfs/
Ddir.c377 struct inode *old_inode = d_inode(old_dentry); in omfs_rename() local
397 err = omfs_add_link(new_dentry, old_inode); in omfs_rename()
401 old_inode->i_ctime = current_time(old_inode); in omfs_rename()
402 mark_inode_dirty(old_inode); in omfs_rename()
/fs/ubifs/
Ddir.c1250 struct inode *old_inode = d_inode(old_dentry); in do_rename() local
1253 struct ubifs_inode *old_inode_ui = ubifs_inode(old_inode); in do_rename()
1256 int is_dir = S_ISDIR(old_inode->i_mode); in do_rename()
1276 old_dentry, old_inode->i_ino, old_dir->i_ino, in do_rename()
1349 old_inode->i_ctime = time; in do_rename()
1407 if (IS_SYNC(old_inode)) { in do_rename()
1432 err = ubifs_jnl_rename(c, old_dir, old_inode, &old_nm, new_dir, in do_rename()
1442 mark_inode_dirty_sync(old_inode); in do_rename()
1447 if (IS_SYNC(old_inode)) in do_rename()
1448 err = old_inode->i_sb->s_op->write_inode(old_inode, NULL); in do_rename()
Djournal.c1210 const struct inode *old_inode, in ubifs_jnl_rename() argument
1267 dent->inum = cpu_to_le64(old_inode->i_ino); in ubifs_jnl_rename()
1268 dent->type = get_dent_type(old_inode->i_mode); in ubifs_jnl_rename()
Dubifs.h1777 const struct inode *old_inode,
/fs/9p/
Dvfs_inode.c956 struct inode *old_inode; in v9fs_vfs_rename() local
969 old_inode = d_inode(old_dentry); in v9fs_vfs_rename()
971 v9ses = v9fs_inode2v9ses(old_inode); in v9fs_vfs_rename()
1020 if (S_ISDIR(old_inode->i_mode)) { in v9fs_vfs_rename()
1025 v9fs_invalidate_inode_attr(old_inode); in v9fs_vfs_rename()
/fs/btrfs/
Dinode.c9534 struct inode *old_inode = old_dentry->d_inode; in btrfs_rename_exchange() local
9535 struct timespec64 ctime = current_time(old_inode); in btrfs_rename_exchange()
9537 u64 old_ino = btrfs_ino(BTRFS_I(old_inode)); in btrfs_rename_exchange()
9554 btrfs_init_log_ctx(&ctx_root, old_inode); in btrfs_rename_exchange()
9590 BTRFS_I(old_inode)->dir_index = 0ULL; in btrfs_rename_exchange()
9630 inode_inc_iversion(old_inode); in btrfs_rename_exchange()
9634 old_inode->i_ctime = ctime; in btrfs_rename_exchange()
9639 BTRFS_I(old_inode), 1); in btrfs_rename_exchange()
9653 ret = btrfs_update_inode(trans, root, old_inode); in btrfs_rename_exchange()
9676 ret = btrfs_add_link(trans, BTRFS_I(new_dir), BTRFS_I(old_inode), in btrfs_rename_exchange()
[all …]
/fs/
Dblock_dev.c2214 struct inode *inode, *old_inode = NULL; in iterate_bdevs() local
2238 iput(old_inode); in iterate_bdevs()
2239 old_inode = inode; in iterate_bdevs()
2250 iput(old_inode); in iterate_bdevs()
/fs/nfs/
Ddir.c2042 struct inode *old_inode = d_inode(old_dentry); in nfs_rename() local
2108 spin_lock(&old_inode->i_lock); in nfs_rename()
2109 NFS_I(old_inode)->attr_gencount = nfs_inc_attr_generation_counter(); in nfs_rename()
2110 NFS_I(old_inode)->cache_validity |= NFS_INO_INVALID_CHANGE in nfs_rename()
2113 spin_unlock(&old_inode->i_lock); in nfs_rename()
Dnfs4proc.c4577 struct inode *old_inode = d_inode(old_dentry); in nfs4_proc_rename_setup() local
4580 if (old_inode) in nfs4_proc_rename_setup()
4581 nfs4_inode_make_writeable(old_inode); in nfs4_proc_rename_setup()
/fs/quota/
Ddquot.c950 struct inode *inode, *old_inode = NULL; in add_dquot_ref() local
973 iput(old_inode); in add_dquot_ref()
988 old_inode = inode; in add_dquot_ref()
993 iput(old_inode); in add_dquot_ref()