Home
last modified time | relevance | path

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

/fs/fat/
Dnamei_msdos.c435 struct inode *old_inode, *new_inode; in do_msdos_rename() local
442 old_inode = d_inode(old_dentry); in do_msdos_rename()
451 is_dir = S_ISDIR(old_inode->i_mode); in do_msdos_rename()
454 if (fat_get_dotdot_entry(old_inode, &dotdot_bh, &dotdot_de)) { in do_msdos_rename()
460 old_attrs = MSDOS_I(old_inode)->i_attrs; in do_msdos_rename()
470 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename()
472 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename()
474 err = fat_sync_inode(old_inode); in do_msdos_rename()
476 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename()
480 mark_inode_dirty(old_inode); in do_msdos_rename()
[all …]
Dnamei_vfat.c902 struct inode *old_inode, *new_inode; in vfat_rename() local
913 old_inode = d_inode(old_dentry); in vfat_rename()
920 is_dir = S_ISDIR(old_inode->i_mode); in vfat_rename()
923 if (fat_get_dotdot_entry(old_inode, &dotdot_bh, &dotdot_de)) { in vfat_rename()
947 fat_detach(old_inode); in vfat_rename()
948 fat_attach(old_inode, new_i_pos); in vfat_rename()
950 err = fat_sync_inode(old_inode); in vfat_rename()
954 mark_inode_dirty(old_inode); in vfat_rename()
958 mark_buffer_dirty_inode(dotdot_bh, old_inode); in vfat_rename()
1000 mark_buffer_dirty_inode(dotdot_bh, old_inode); in vfat_rename()
[all …]
/fs/ufs/
Dnamei.c250 struct inode *old_inode = d_inode(old_dentry); in ufs_rename() local
265 if (S_ISDIR(old_inode->i_mode)) { in ufs_rename()
267 dir_de = ufs_dotdot(old_inode, &dir_page); in ufs_rename()
284 ufs_set_link(new_dir, new_de, new_page, old_inode, 1); in ufs_rename()
290 err = ufs_add_link(new_dentry, old_inode); in ufs_rename()
301 old_inode->i_ctime = current_time(old_inode); in ufs_rename()
304 mark_inode_dirty(old_inode); in ufs_rename()
308 ufs_set_link(old_inode, dir_de, dir_page, new_dir, 0); in ufs_rename()
/fs/f2fs/
Dnamei.c941 struct inode *old_inode = d_inode(old_dentry); in f2fs_rename() local
1003 if (S_ISDIR(old_inode->i_mode)) { in f2fs_rename()
1004 old_dir_entry = f2fs_parent_dir(old_inode, &old_dir_page); in f2fs_rename()
1035 f2fs_set_link(new_dir, new_entry, new_page, old_inode); in f2fs_rename()
1054 err = f2fs_add_link(new_dentry, old_inode); in f2fs_rename()
1064 f2fs_down_write(&F2FS_I(old_inode)->i_sem); in f2fs_rename()
1066 file_lost_pino(old_inode); in f2fs_rename()
1069 f2fs_i_pino_write(old_inode, new_dir->i_ino); in f2fs_rename()
1070 f2fs_up_write(&F2FS_I(old_inode)->i_sem); in f2fs_rename()
1072 old_inode->i_ctime = current_time(old_inode); in f2fs_rename()
[all …]
/fs/ext2/
Dnamei.c329 struct inode * old_inode = d_inode(old_dentry); in ext2_rename() local
357 if (S_ISDIR(old_inode->i_mode)) { in ext2_rename()
359 dir_de = ext2_dotdot(old_inode, &dir_page, &dir_page_addr); in ext2_rename()
379 ext2_set_link(new_dir, new_de, new_page, page_addr, old_inode, 1); in ext2_rename()
386 err = ext2_add_link(new_dentry, old_inode); in ext2_rename()
397 old_inode->i_ctime = current_time(old_inode); in ext2_rename()
398 mark_inode_dirty(old_inode); in ext2_rename()
404 ext2_set_link(old_inode, dir_de, dir_page, in ext2_rename()
/fs/sysv/
Dnamei.c196 struct inode * old_inode = d_inode(old_dentry); in sysv_rename() local
211 if (S_ISDIR(old_inode->i_mode)) { in sysv_rename()
213 dir_de = sysv_dotdot(old_inode, &dir_page); in sysv_rename()
230 sysv_set_link(new_de, new_page, old_inode); in sysv_rename()
236 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
244 mark_inode_dirty(old_inode); in sysv_rename()
/fs/reiserfs/
Dnamei.c1325 struct inode *old_inode, *new_dentry_inode; in reiserfs_rename() local
1356 old_inode = d_inode(old_dentry); in reiserfs_rename()
1375 if (retval != NAME_FOUND || old_de.de_objectid != old_inode->i_ino) { in reiserfs_rename()
1380 old_inode_mode = old_inode->i_mode; in reiserfs_rename()
1400 reiserfs_find_entry(old_inode, "..", 2, &dot_dot_entry_path, in reiserfs_rename()
1424 new_dentry->d_name.len, old_inode, 0); in reiserfs_rename()
1443 reiserfs_update_inode_transaction(old_inode); in reiserfs_rename()
1465 reiserfs_prepare_for_journal(old_inode->i_sb, old_de.de_bh, 1); in reiserfs_rename()
1489 reiserfs_prepare_for_journal(old_inode->i_sb, new_de.de_bh, 1); in reiserfs_rename()
1491 if (S_ISDIR(old_inode->i_mode)) { in reiserfs_rename()
[all …]
/fs/minix/
Dnamei.c192 struct inode * old_inode = d_inode(old_dentry); in minix_rename() local
207 if (S_ISDIR(old_inode->i_mode)) { in minix_rename()
209 dir_de = minix_dotdot(old_inode, &dir_page); in minix_rename()
226 minix_set_link(new_de, new_page, old_inode); in minix_rename()
232 err = minix_add_link(new_dentry, old_inode); in minix_rename()
240 mark_inode_dirty(old_inode); in minix_rename()
/fs/nilfs2/
Dnamei.c348 struct inode *old_inode = d_inode(old_dentry); in nilfs_rename() local
369 if (S_ISDIR(old_inode->i_mode)) { in nilfs_rename()
371 dir_de = nilfs_dotdot(old_inode, &dir_page); in nilfs_rename()
388 nilfs_set_link(new_dir, new_de, new_page, old_inode); in nilfs_rename()
396 err = nilfs_add_link(new_dentry, old_inode); in nilfs_rename()
409 old_inode->i_ctime = current_time(old_inode); in nilfs_rename()
414 nilfs_set_link(old_inode, dir_de, dir_page, new_dir); in nilfs_rename()
418 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.c1080 struct inode *old_inode = d_inode(old_dentry); in udf_rename() local
1088 struct udf_inode_info *old_iinfo = UDF_I(old_inode); in udf_rename()
1105 if (udf_get_lb_pblock(old_dir->i_sb, &tloc, 0) != old_inode->i_ino) in udf_rename()
1119 if (S_ISDIR(old_inode->i_mode)) { in udf_rename()
1120 int offset = udf_ext0_offset(old_inode); in udf_rename()
1134 old_inode->i_sb->s_blocksize, &offset); in udf_rename()
1136 dir_bh = udf_bread(old_inode, 0, 0, &retval); in udf_rename()
1140 old_inode->i_sb->s_blocksize, &offset); in udf_rename()
1145 if (udf_get_lb_pblock(old_inode->i_sb, &tloc, 0) != in udf_rename()
1160 old_inode->i_ctime = current_time(old_inode); in udf_rename()
[all …]
/fs/ocfs2/
Dnamei.c1207 struct inode *old_inode = d_inode(old_dentry); in ocfs2_rename() local
1267 if (old_dir != new_dir && S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1278 old_inode->i_ino); in ocfs2_rename()
1285 (unsigned long long)old_inode->i_ino, in ocfs2_rename()
1324 status = ocfs2_inode_lock_nested(old_inode, &old_inode_bh, 1, in ocfs2_rename()
1339 if (S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1344 old_inode, in ocfs2_rename()
1377 if (old_de_ino != OCFS2_I(old_inode)->ip_blkno) { in ocfs2_rename()
1512 old_inode); in ocfs2_rename()
1535 status = ocfs2_add_entry(handle, new_dentry, old_inode, in ocfs2_rename()
[all …]
Dxattr.h80 int ocfs2_reflink_xattrs(struct inode *old_inode,
Dxattr.c6184 struct inode *old_inode; member
6348 struct super_block *sb = args->old_inode->i_sb; in ocfs2_reflink_xattr_header()
6418 ret = ocfs2_xattr_get_clusters(args->old_inode, in ocfs2_reflink_xattr_header()
6435 args->old_inode->i_sb, in ocfs2_reflink_xattr_header()
6466 struct ocfs2_super *osb = OCFS2_SB(args->old_inode->i_sb); in ocfs2_reflink_xattr_inline()
6754 struct ocfs2_super *osb = OCFS2_SB(args->reflink->old_inode->i_sb); in ocfs2_lock_reflink_xattr_rec_allocators()
6759 ret = ocfs2_iterate_xattr_buckets(args->reflink->old_inode, blkno, len, in ocfs2_lock_reflink_xattr_rec_allocators()
6839 struct super_block *sb = args->reflink->old_inode->i_sb; in ocfs2_reflink_xattr_bucket()
7063 para.old_bucket = ocfs2_xattr_bucket_new(args->old_inode); in ocfs2_reflink_xattr_tree()
7076 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.c1289 struct inode *old_inode = d_inode(old_dentry); in do_rename() local
1292 struct ubifs_inode *old_inode_ui = ubifs_inode(old_inode); in do_rename()
1295 int is_dir = S_ISDIR(old_inode->i_mode); in do_rename()
1317 old_dentry, old_inode->i_ino, old_dir->i_ino, in do_rename()
1419 old_inode->i_ctime = time; in do_rename()
1477 if (IS_SYNC(old_inode)) { in do_rename()
1488 err = ubifs_jnl_rename(c, old_dir, old_inode, &old_nm, new_dir, in do_rename()
1503 mark_inode_dirty_sync(old_inode); in do_rename()
1508 if (IS_SYNC(old_inode)) in do_rename()
1514 old_inode->i_sb->s_op->write_inode(old_inode, NULL); in do_rename()
Djournal.c1215 const struct inode *old_inode, in ubifs_jnl_rename() argument
1284 dent->inum = cpu_to_le64(old_inode->i_ino); in ubifs_jnl_rename()
1285 dent->type = get_dent_type(old_inode->i_mode); in ubifs_jnl_rename()
Dubifs.h1785 const struct inode *old_inode,
/fs/exfat/
Dnamei.c1326 struct inode *old_inode, *new_inode; in exfat_rename() local
1340 old_inode = old_dentry->d_inode; in exfat_rename()
1343 err = __exfat_rename(old_dir, EXFAT_I(old_inode), new_dir, new_dentry); in exfat_rename()
1356 i_pos = ((loff_t)EXFAT_I(old_inode)->dir.dir << 32) | in exfat_rename()
1357 (EXFAT_I(old_inode)->entry & 0xffffffff); in exfat_rename()
1358 exfat_unhash_inode(old_inode); in exfat_rename()
1359 exfat_hash_inode(old_inode, i_pos); in exfat_rename()
1361 exfat_sync_inode(old_inode); in exfat_rename()
1363 mark_inode_dirty(old_inode); in exfat_rename()
1365 if (S_ISDIR(old_inode->i_mode) && old_dir != new_dir) { in exfat_rename()
/fs/9p/
Dvfs_inode.c924 struct inode *old_inode; in v9fs_vfs_rename() local
937 old_inode = d_inode(old_dentry); in v9fs_vfs_rename()
939 v9ses = v9fs_inode2v9ses(old_inode); in v9fs_vfs_rename()
995 if (S_ISDIR(old_inode->i_mode)) { in v9fs_vfs_rename()
1000 v9fs_invalidate_inode_attr(old_inode); in v9fs_vfs_rename()
/fs/btrfs/
Dinode.c9487 struct inode *old_inode = old_dentry->d_inode; in btrfs_rename_exchange() local
9488 struct timespec64 ctime = current_time(old_inode); in btrfs_rename_exchange()
9489 u64 old_ino = btrfs_ino(BTRFS_I(old_inode)); in btrfs_rename_exchange()
9545 BTRFS_I(old_inode)->dir_index = 0ULL; in btrfs_rename_exchange()
9585 inode_inc_iversion(old_inode); in btrfs_rename_exchange()
9589 old_inode->i_ctime = ctime; in btrfs_rename_exchange()
9594 BTRFS_I(old_inode), 1); in btrfs_rename_exchange()
9631 ret = btrfs_update_inode(trans, root, BTRFS_I(old_inode)); in btrfs_rename_exchange()
9654 ret = btrfs_add_link(trans, BTRFS_I(new_dir), BTRFS_I(old_inode), in btrfs_rename_exchange()
9670 if (old_inode->i_nlink == 1) in btrfs_rename_exchange()
[all …]
/fs/nfs/
Ddir.c2441 struct inode *old_inode = d_inode(old_dentry); in nfs_rename() local
2491 if (S_ISREG(old_inode->i_mode)) in nfs_rename()
2492 nfs_sync_inode(old_inode); in nfs_rename()
2509 spin_lock(&old_inode->i_lock); in nfs_rename()
2510 NFS_I(old_inode)->attr_gencount = nfs_inc_attr_generation_counter(); in nfs_rename()
2511 nfs_set_cache_invalid(old_inode, NFS_INO_INVALID_CHANGE | in nfs_rename()
2514 spin_unlock(&old_inode->i_lock); in nfs_rename()
Dnfs4proc.c4817 struct inode *old_inode = d_inode(old_dentry); in nfs4_proc_rename_setup() local
4820 if (old_inode) in nfs4_proc_rename_setup()
4821 nfs4_inode_make_writeable(old_inode); in nfs4_proc_rename_setup()
/fs/quota/
Ddquot.c1032 struct inode *inode, *old_inode = NULL; in add_dquot_ref() local
1055 iput(old_inode); in add_dquot_ref()
1070 old_inode = inode; in add_dquot_ref()
1075 iput(old_inode); in add_dquot_ref()