Home
last modified time | relevance | path

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

12

/fs/fat/
Dnamei_msdos.c440 struct inode *old_inode, *new_inode; in do_msdos_rename() local
447 old_inode = old_dentry->d_inode; in do_msdos_rename()
456 is_dir = S_ISDIR(old_inode->i_mode); in do_msdos_rename()
459 if (fat_get_dotdot_entry(old_inode, &dotdot_bh, &dotdot_de)) { in do_msdos_rename()
465 old_attrs = MSDOS_I(old_inode)->i_attrs; in do_msdos_rename()
475 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename()
477 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename()
479 err = fat_sync_inode(old_inode); in do_msdos_rename()
481 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename()
485 mark_inode_dirty(old_inode); in do_msdos_rename()
[all …]
Dnamei_vfat.c914 struct inode *old_inode, *new_inode; in vfat_rename() local
922 old_inode = old_dentry->d_inode; in vfat_rename()
929 is_dir = S_ISDIR(old_inode->i_mode); in vfat_rename()
932 if (fat_get_dotdot_entry(old_inode, &dotdot_bh, &dotdot_de)) { in vfat_rename()
956 fat_detach(old_inode); in vfat_rename()
957 fat_attach(old_inode, new_i_pos); in vfat_rename()
959 err = fat_sync_inode(old_inode); in vfat_rename()
963 mark_inode_dirty(old_inode); in vfat_rename()
967 mark_buffer_dirty_inode(dotdot_bh, old_inode); in vfat_rename()
1009 mark_buffer_dirty_inode(dotdot_bh, old_inode); in vfat_rename()
[all …]
/fs/exofs/
Dnamei.c233 struct inode *old_inode = old_dentry->d_inode; in exofs_rename() local
245 if (S_ISDIR(old_inode->i_mode)) { in exofs_rename()
247 dir_de = exofs_dotdot(old_inode, &dir_page); in exofs_rename()
264 err = exofs_set_link(new_dir, new_de, new_page, old_inode); in exofs_rename()
272 err = exofs_add_link(new_dentry, old_inode); in exofs_rename()
279 old_inode->i_ctime = CURRENT_TIME; in exofs_rename()
282 mark_inode_dirty(old_inode); in exofs_rename()
285 err = exofs_set_link(old_inode, dir_de, dir_page, new_dir); in exofs_rename()
/fs/ufs/
Dnamei.c264 struct inode *old_inode = old_dentry->d_inode; in ufs_rename() local
276 if (S_ISDIR(old_inode->i_mode)) { in ufs_rename()
278 dir_de = ufs_dotdot(old_inode, &dir_page); in ufs_rename()
295 ufs_set_link(new_dir, new_de, new_page, old_inode); in ufs_rename()
301 err = ufs_add_link(new_dentry, old_inode); in ufs_rename()
312 old_inode->i_ctime = CURRENT_TIME_SEC; in ufs_rename()
315 mark_inode_dirty(old_inode); in ufs_rename()
318 ufs_set_link(old_inode, dir_de, dir_page, new_dir); in ufs_rename()
/fs/ext2/
Dnamei.c303 struct inode * old_inode = old_dentry->d_inode; in ext2_rename() local
318 if (S_ISDIR(old_inode->i_mode)) { in ext2_rename()
320 dir_de = ext2_dotdot(old_inode, &dir_page); in ext2_rename()
337 ext2_set_link(new_dir, new_de, new_page, old_inode, 1); in ext2_rename()
343 err = ext2_add_link(new_dentry, old_inode); in ext2_rename()
354 old_inode->i_ctime = CURRENT_TIME_SEC; in ext2_rename()
355 mark_inode_dirty(old_inode); in ext2_rename()
361 ext2_set_link(old_inode, dir_de, dir_page, new_dir, 0); in ext2_rename()
/fs/minix/
Dnamei.c178 struct inode * old_inode = old_dentry->d_inode; in minix_rename() local
190 if (S_ISDIR(old_inode->i_mode)) { in minix_rename()
192 dir_de = minix_dotdot(old_inode, &dir_page); in minix_rename()
209 minix_set_link(new_de, new_page, old_inode); in minix_rename()
215 err = minix_add_link(new_dentry, old_inode); in minix_rename()
223 mark_inode_dirty(old_inode); in minix_rename()
/fs/sysv/
Dnamei.c212 struct inode * old_inode = old_dentry->d_inode; in sysv_rename() local
224 if (S_ISDIR(old_inode->i_mode)) { in sysv_rename()
226 dir_de = sysv_dotdot(old_inode, &dir_page); in sysv_rename()
243 sysv_set_link(new_de, new_page, old_inode); in sysv_rename()
249 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
257 mark_inode_dirty(old_inode); in sysv_rename()
/fs/reiserfs/
Dnamei.c1221 struct inode *old_inode, *new_dentry_inode; in reiserfs_rename() local
1243 old_inode = old_dentry->d_inode; in reiserfs_rename()
1260 if (retval != NAME_FOUND || old_de.de_objectid != old_inode->i_ino) { in reiserfs_rename()
1265 old_inode_mode = old_inode->i_mode; in reiserfs_rename()
1283 reiserfs_find_entry(old_inode, "..", 2, &dot_dot_entry_path, in reiserfs_rename()
1307 new_dentry->d_name.len, old_inode, 0); in reiserfs_rename()
1325 reiserfs_update_inode_transaction(old_inode); in reiserfs_rename()
1344 reiserfs_prepare_for_journal(old_inode->i_sb, old_de.de_bh, 1); in reiserfs_rename()
1364 reiserfs_prepare_for_journal(old_inode->i_sb, new_de.de_bh, 1); in reiserfs_rename()
1366 if (S_ISDIR(old_inode->i_mode)) { in reiserfs_rename()
[all …]
/fs/nilfs2/
Dnamei.c352 struct inode *old_inode = old_dentry->d_inode; in nilfs_rename() local
370 if (S_ISDIR(old_inode->i_mode)) { in nilfs_rename()
372 dir_de = nilfs_dotdot(old_inode, &dir_page); in nilfs_rename()
389 nilfs_set_link(new_dir, new_de, new_page, old_inode); in nilfs_rename()
397 err = nilfs_add_link(new_dentry, old_inode); in nilfs_rename()
410 old_inode->i_ctime = CURRENT_TIME; in nilfs_rename()
415 nilfs_set_link(old_inode, dir_de, dir_page, new_dir); in nilfs_rename()
419 nilfs_mark_inode_dirty(old_inode); in nilfs_rename()
/fs/f2fs/
Dnamei.c401 struct inode *old_inode = old_dentry->d_inode; in f2fs_rename() local
416 if (S_ISDIR(old_inode->i_mode)) { in f2fs_rename()
418 old_dir_entry = f2fs_parent_dir(old_inode, &old_dir_page); in f2fs_rename()
438 f2fs_set_link(new_dir, new_entry, new_page, old_inode); in f2fs_rename()
448 err = f2fs_add_link(new_dentry, old_inode); in f2fs_rename()
458 old_inode->i_ctime = CURRENT_TIME; in f2fs_rename()
459 mark_inode_dirty(old_inode); in f2fs_rename()
465 f2fs_set_link(old_inode, old_dir_entry, in f2fs_rename()
/fs/bfs/
Ddir.c221 struct inode *old_inode, *new_inode; in bfs_rename() local
228 old_inode = old_dentry->d_inode; in bfs_rename()
229 if (S_ISDIR(old_inode->i_mode)) in bfs_rename()
232 info = BFS_SB(old_inode->i_sb); in bfs_rename()
239 if (!old_bh || (le16_to_cpu(old_de->ino) != old_inode->i_ino)) in bfs_rename()
256 old_inode->i_ino); in bfs_rename()
/fs/udf/
Dnamei.c1062 struct inode *old_inode = old_dentry->d_inode; in udf_rename() local
1070 struct udf_inode_info *old_iinfo = UDF_I(old_inode); in udf_rename()
1080 != old_inode->i_ino) in udf_rename()
1092 if (S_ISDIR(old_inode->i_mode)) { in udf_rename()
1093 int offset = udf_ext0_offset(old_inode); in udf_rename()
1107 old_inode->i_sb->s_blocksize, &offset); in udf_rename()
1109 dir_bh = udf_bread(old_inode, 0, 0, &retval); in udf_rename()
1113 old_inode->i_sb->s_blocksize, &offset); in udf_rename()
1118 if (udf_get_lb_pblock(old_inode->i_sb, &tloc, 0) != in udf_rename()
1133 old_inode->i_ctime = current_fs_time(old_inode->i_sb); in udf_rename()
[all …]
/fs/ubifs/
Ddir.c983 struct inode *old_inode = old_dentry->d_inode; in ubifs_rename() local
985 struct ubifs_inode *old_inode_ui = ubifs_inode(old_inode); in ubifs_rename()
987 int is_dir = S_ISDIR(old_inode->i_mode); in ubifs_rename()
1009 old_inode->i_ino, old_dir->i_ino, new_dentry->d_name.len, in ubifs_rename()
1039 old_inode->i_ctime = time; in ubifs_rename()
1097 if (IS_SYNC(old_inode)) { in ubifs_rename()
1112 mark_inode_dirty_sync(old_inode); in ubifs_rename()
1117 if (IS_SYNC(old_inode)) in ubifs_rename()
1118 err = old_inode->i_sb->s_op->write_inode(old_inode, NULL); in ubifs_rename()
Djournal.c929 const struct inode *old_inode = old_dentry->d_inode; in ubifs_jnl_rename() local
973 dent->inum = cpu_to_le64(old_inode->i_ino); in ubifs_jnl_rename()
974 dent->type = get_dent_type(old_inode->i_mode); in ubifs_jnl_rename()
/fs/ocfs2/
Dnamei.c1044 struct inode *old_inode = old_dentry->d_inode; in ocfs2_rename() local
1092 if (old_dir != new_dir && S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1129 status = ocfs2_inode_lock_nested(old_inode, &old_inode_bh, 1, in ocfs2_rename()
1144 if (S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1149 old_inode, in ocfs2_rename()
1182 if (old_de_ino != OCFS2_I(old_inode)->ip_blkno) { in ocfs2_rename()
1326 old_inode); in ocfs2_rename()
1340 status = ocfs2_add_entry(handle, new_dentry, old_inode, in ocfs2_rename()
1341 OCFS2_I(old_inode)->ip_blkno, in ocfs2_rename()
1345 old_inode->i_ctime = CURRENT_TIME; in ocfs2_rename()
[all …]
Dxattr.h92 int ocfs2_reflink_xattrs(struct inode *old_inode,
Dxattr.c6167 struct inode *old_inode; member
6332 struct super_block *sb = args->old_inode->i_sb; in ocfs2_reflink_xattr_header()
6402 ret = ocfs2_xattr_get_clusters(args->old_inode, in ocfs2_reflink_xattr_header()
6419 args->old_inode->i_sb, in ocfs2_reflink_xattr_header()
6450 struct ocfs2_super *osb = OCFS2_SB(args->old_inode->i_sb); in ocfs2_reflink_xattr_inline()
6728 struct ocfs2_super *osb = OCFS2_SB(args->reflink->old_inode->i_sb); in ocfs2_lock_reflink_xattr_rec_allocators()
6733 ret = ocfs2_iterate_xattr_buckets(args->reflink->old_inode, blkno, len, in ocfs2_lock_reflink_xattr_rec_allocators()
6813 struct super_block *sb = args->reflink->old_inode->i_sb; in ocfs2_reflink_xattr_bucket()
7037 para.old_bucket = ocfs2_xattr_bucket_new(args->old_inode); in ocfs2_reflink_xattr_tree()
7050 ret = ocfs2_iterate_xattr_index_block(args->old_inode, blk_bh, in ocfs2_reflink_xattr_tree()
[all …]
/fs/omfs/
Ddir.c379 struct inode *old_inode = old_dentry->d_inode; in omfs_rename() local
396 err = omfs_add_link(new_dentry, old_inode); in omfs_rename()
400 old_inode->i_ctime = CURRENT_TIME_SEC; in omfs_rename()
401 mark_inode_dirty(old_inode); in omfs_rename()
/fs/ncpfs/
Ddir.c239 struct inode *old_inode = old_dentry->d_inode; in ncp_force_rename() local
240 __le32 old_nwattr = NCP_FINFO(old_inode)->nwattr; in ncp_force_rename()
250 …res2 = ncp_modify_file_or_subdir_dos_info_path(NCP_SERVER(old_inode), old_inode, NULL, DM_ATTRIBUT… in ncp_force_rename()
279 …res2 = ncp_modify_file_or_subdir_dos_info_path(NCP_SERVER(old_inode), old_inode, NULL, DM_ATTRIBUT… in ncp_force_rename()
/fs/ext3/
Dnamei.c2342 struct inode * old_inode, * new_inode; in ext3_rename() local
2372 old_inode = old_dentry->d_inode; in ext3_rename()
2374 if (!old_bh || le32_to_cpu(old_de->inode) != old_inode->i_ino) in ext3_rename()
2385 if (S_ISDIR(old_inode->i_mode)) { in ext3_rename()
2392 dir_bh = ext3_dir_bread(handle, old_inode, 0, 0, &retval); in ext3_rename()
2403 retval = ext3_add_entry (handle, new_dentry, old_inode); in ext3_rename()
2411 new_de->inode = cpu_to_le32(old_inode->i_ino); in ext3_rename()
2430 old_inode->i_ctime = CURRENT_TIME_SEC; in ext3_rename()
2431 ext3_mark_inode_dirty(handle, old_inode); in ext3_rename()
2436 if (le32_to_cpu(old_de->inode) != old_inode->i_ino || in ext3_rename()
[all …]
/fs/
Dfs-writeback.c1215 struct inode *inode, *old_inode = NULL; in wait_sb_inodes() local
1253 iput(old_inode); in wait_sb_inodes()
1254 old_inode = inode; in wait_sb_inodes()
1263 iput(old_inode); in wait_sb_inodes()
Dblock_dev.c1683 struct inode *inode, *old_inode = NULL; in iterate_bdevs() local
1706 iput(old_inode); in iterate_bdevs()
1707 old_inode = inode; in iterate_bdevs()
1714 iput(old_inode); in iterate_bdevs()
/fs/9p/
Dvfs_inode.c962 struct inode *old_inode; in v9fs_vfs_rename() local
972 old_inode = old_dentry->d_inode; in v9fs_vfs_rename()
974 v9ses = v9fs_inode2v9ses(old_inode); in v9fs_vfs_rename()
1023 if (S_ISDIR(old_inode->i_mode)) { in v9fs_vfs_rename()
1028 v9fs_invalidate_inode_attr(old_inode); in v9fs_vfs_rename()
/fs/logfs/
Ddir.c680 struct inode *old_inode = old_dentry->d_inode; in logfs_rename_target() local
682 int isdir = S_ISDIR(old_inode->i_mode); in logfs_rename_target()
711 err = logfs_replace_inode(new_dir, new_dentry, &dd, old_inode); in logfs_rename_target()
/fs/btrfs/
Dinode.c8126 struct inode *old_inode = old_dentry->d_inode; in btrfs_rename() local
8131 u64 old_ino = btrfs_ino(old_inode); in btrfs_rename()
8144 if (S_ISDIR(old_inode->i_mode) && new_inode && in btrfs_rename()
8174 if (new_inode && S_ISREG(old_inode->i_mode) && new_inode->i_size && in btrfs_rename()
8175 old_inode->i_size > BTRFS_ORDERED_OPERATIONS_FLUSH_LIMIT) in btrfs_rename()
8176 filemap_flush(old_inode->i_mapping); in btrfs_rename()
8226 if (new_inode && new_inode->i_size && S_ISREG(old_inode->i_mode)) in btrfs_rename()
8227 btrfs_add_ordered_operation(trans, root, old_inode); in btrfs_rename()
8231 inode_inc_iversion(old_inode); in btrfs_rename()
8234 old_inode->i_ctime = ctime; in btrfs_rename()
[all …]

12