/linux-6.3-rc2/fs/fat/ |
A D | namei_msdos.c | 435 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() 474 err = fat_sync_inode(old_inode); in do_msdos_rename() 480 mark_inode_dirty(old_inode); in do_msdos_rename() 492 ts = current_time(old_inode); in do_msdos_rename() 512 fat_detach(old_inode); in do_msdos_rename() 513 fat_attach(old_inode, new_i_pos); in do_msdos_rename() 519 err = fat_sync_inode(old_inode); in do_msdos_rename() 523 mark_inode_dirty(old_inode); in do_msdos_rename() [all …]
|
A D | namei_vfat.c | 936 struct inode *old_inode, *new_inode; in vfat_rename() local 944 old_inode = d_inode(old_dentry); in vfat_rename() 957 is_dir = S_ISDIR(old_inode->i_mode); in vfat_rename() 976 fat_detach(old_inode); in vfat_rename() 977 fat_attach(old_inode, new_i_pos); in vfat_rename() 1021 fat_detach(old_inode); in vfat_rename() 1048 fat_detach(old_inode); in vfat_exchange_ipos() 1050 fat_attach(old_inode, new_i_pos); in vfat_exchange_ipos() 1065 struct inode *old_inode, *new_inode; in vfat_rename_exchange() local 1071 old_inode = d_inode(old_dentry); in vfat_rename_exchange() [all …]
|
/linux-6.3-rc2/fs/ufs/ |
A D | namei.c | 250 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()
|
/linux-6.3-rc2/fs/ext2/ |
A D | namei.c | 323 struct inode * old_inode = d_inode(old_dentry); in ext2_rename() local 351 if (S_ISDIR(old_inode->i_mode)) { in ext2_rename() 353 dir_de = ext2_dotdot(old_inode, &dir_page, &dir_page_addr); in ext2_rename() 374 old_inode, true); in ext2_rename() 383 err = ext2_add_link(new_dentry, old_inode); in ext2_rename() 394 old_inode->i_ctime = current_time(old_inode); in ext2_rename() 395 mark_inode_dirty(old_inode); in ext2_rename() 401 err = ext2_set_link(old_inode, dir_de, dir_page, in ext2_rename()
|
/linux-6.3-rc2/fs/f2fs/ |
A D | namei.c | 1006 if (S_ISDIR(old_inode->i_mode)) { in f2fs_rename() 1067 f2fs_down_write(&F2FS_I(old_inode)->i_sem); in f2fs_rename() 1069 file_lost_pino(old_inode); in f2fs_rename() 1073 f2fs_up_write(&F2FS_I(old_inode)->i_sem); in f2fs_rename() 1075 old_inode->i_ctime = current_time(old_inode); in f2fs_rename() 1096 f2fs_set_link(old_inode, old_dir_entry, in f2fs_rename() 1104 if (S_ISDIR(old_inode->i_mode)) in f2fs_rename() 1105 f2fs_add_ino_entry(sbi, old_inode->i_ino, in f2fs_rename() 1181 if (S_ISDIR(old_inode->i_mode)) { in f2fs_cross_rename() 1234 file_lost_pino(old_inode); in f2fs_cross_rename() [all …]
|
/linux-6.3-rc2/fs/minix/ |
A D | namei.c | 182 struct inode * old_inode = d_inode(old_dentry); in minix_rename() local 197 if (S_ISDIR(old_inode->i_mode)) { in minix_rename() 199 dir_de = minix_dotdot(old_inode, &dir_page); in minix_rename() 216 err = minix_set_link(new_de, new_page, old_inode); in minix_rename() 226 err = minix_add_link(new_dentry, old_inode); in minix_rename() 237 mark_inode_dirty(old_inode); in minix_rename()
|
/linux-6.3-rc2/fs/sysv/ |
A D | namei.c | 195 struct inode * old_inode = d_inode(old_dentry); in sysv_rename() local 210 if (S_ISDIR(old_inode->i_mode)) { in sysv_rename() 212 dir_de = sysv_dotdot(old_inode, &dir_page); in sysv_rename() 229 err = sysv_set_link(new_de, new_page, old_inode); in sysv_rename() 238 err = sysv_add_link(new_dentry, old_inode); in sysv_rename() 249 mark_inode_dirty(old_inode); in sysv_rename()
|
/linux-6.3-rc2/fs/reiserfs/ |
A D | namei.c | 1325 struct inode *old_inode, *new_dentry_inode; in reiserfs_rename() local 1356 old_inode = d_inode(old_dentry); in reiserfs_rename() 1380 old_inode_mode = old_inode->i_mode; 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() 1491 if (S_ISDIR(old_inode->i_mode)) { in reiserfs_rename() 1507 reiserfs_prepare_for_journal(old_inode->i_sb, in reiserfs_rename() 1534 &old_de, old_inode)) { in reiserfs_rename() 1540 reiserfs_restore_prepared_buffer(old_inode-> in reiserfs_rename() 1588 old_inode->i_ctime = ctime; in reiserfs_rename() [all …]
|
/linux-6.3-rc2/fs/nilfs2/ |
A D | namei.c | 348 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()
|
/linux-6.3-rc2/fs/udf/ |
A D | namei.c | 770 struct inode *old_inode = d_inode(old_dentry); in udf_rename() local 790 if (S_ISDIR(old_inode->i_mode)) { in udf_rename() 804 udf_err(old_inode->i_sb, in udf_rename() 806 old_inode->i_ino); in udf_rename() 810 inode_unlock(old_inode); in udf_rename() 818 udf_err(old_inode->i_sb, in udf_rename() 820 old_inode->i_ino, old_dir->i_ino, in udf_rename() 847 old_inode->i_ctime = current_time(old_inode); in udf_rename() 848 mark_inode_dirty(old_inode); in udf_rename() 892 inode_unlock(old_inode); in udf_rename() [all …]
|
/linux-6.3-rc2/fs/bfs/ |
A D | dir.c | 206 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()
|
/linux-6.3-rc2/fs/omfs/ |
A D | dir.c | 378 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()
|
/linux-6.3-rc2/fs/ocfs2/ |
A D | namei.c | 1206 struct inode *old_inode = d_inode(old_dentry); in ocfs2_rename() local 1277 old_inode->i_ino); in ocfs2_rename() 1284 (unsigned long long)old_inode->i_ino, in ocfs2_rename() 1338 if (S_ISDIR(old_inode->i_mode)) { in ocfs2_rename() 1343 old_inode, in ocfs2_rename() 1511 old_inode); in ocfs2_rename() 1535 OCFS2_I(old_inode)->ip_blkno, in ocfs2_rename() 1539 old_inode->i_ctime = current_time(old_inode); in ocfs2_rename() 1540 mark_inode_dirty(old_inode); in ocfs2_rename() 1655 ocfs2_inode_unlock(old_inode, 1); in ocfs2_rename() [all …]
|
A D | xattr.h | 80 int ocfs2_reflink_xattrs(struct inode *old_inode,
|
A D | xattr.c | 6184 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() 6839 struct super_block *sb = args->reflink->old_inode->i_sb; in ocfs2_reflink_xattr_bucket() 7128 int ocfs2_reflink_xattrs(struct inode *old_inode, in ocfs2_reflink_xattrs() argument 7136 struct ocfs2_inode_info *oi = OCFS2_I(old_inode); in ocfs2_reflink_xattrs() 7143 ret = ocfs2_lock_refcount_tree(OCFS2_SB(old_inode->i_sb), in ocfs2_reflink_xattrs() 7153 args.old_inode = old_inode; in ocfs2_reflink_xattrs() 7190 ocfs2_unlock_refcount_tree(OCFS2_SB(old_inode->i_sb), in ocfs2_reflink_xattrs() [all …]
|
/linux-6.3-rc2/fs/exfat/ |
A D | namei.c | 1293 struct inode *old_inode, *new_inode; in exfat_rename() local 1307 old_inode = old_dentry->d_inode; in exfat_rename() 1310 err = __exfat_rename(old_dir, EXFAT_I(old_inode), new_dir, new_dentry); in exfat_rename() 1323 i_pos = ((loff_t)EXFAT_I(old_inode)->dir.dir << 32) | in exfat_rename() 1324 (EXFAT_I(old_inode)->entry & 0xffffffff); in exfat_rename() 1325 exfat_unhash_inode(old_inode); in exfat_rename() 1326 exfat_hash_inode(old_inode, i_pos); in exfat_rename() 1328 exfat_sync_inode(old_inode); in exfat_rename() 1330 mark_inode_dirty(old_inode); in exfat_rename() 1332 if (S_ISDIR(old_inode->i_mode) && old_dir != new_dir) { in exfat_rename()
|
/linux-6.3-rc2/fs/ubifs/ |
A D | dir.c | 1293 struct inode *old_inode = d_inode(old_dentry); in do_rename() local 1296 struct ubifs_inode *old_inode_ui = ubifs_inode(old_inode); in do_rename() 1299 int is_dir = S_ISDIR(old_inode->i_mode); in do_rename() 1321 old_dentry, old_inode->i_ino, old_dir->i_ino, in do_rename() 1423 old_inode->i_ctime = time; in do_rename() 1481 if (IS_SYNC(old_inode)) { in do_rename() 1492 err = ubifs_jnl_rename(c, old_dir, old_inode, &old_nm, new_dir, in do_rename() 1507 mark_inode_dirty_sync(old_inode); in do_rename() 1512 if (IS_SYNC(old_inode)) in do_rename() 1518 old_inode->i_sb->s_op->write_inode(old_inode, NULL); in do_rename()
|
A D | journal.c | 1219 const struct inode *old_inode, in ubifs_jnl_rename() argument 1288 dent->inum = cpu_to_le64(old_inode->i_ino); in ubifs_jnl_rename() 1289 dent->type = get_dent_type(old_inode->i_mode); in ubifs_jnl_rename()
|
A D | ubifs.h | 1814 const struct inode *old_inode,
|
/linux-6.3-rc2/block/ |
A D | bdev.c | 946 struct inode *inode, *old_inode = NULL; in sync_bdevs() local 970 iput(old_inode); in sync_bdevs() 971 old_inode = inode; in sync_bdevs() 993 iput(old_inode); in sync_bdevs()
|
/linux-6.3-rc2/fs/9p/ |
A D | vfs_inode.c | 925 struct inode *old_inode; in v9fs_vfs_rename() local 938 old_inode = d_inode(old_dentry); in v9fs_vfs_rename() 940 v9ses = v9fs_inode2v9ses(old_inode); in v9fs_vfs_rename() 997 if (S_ISDIR(old_inode->i_mode)) { in v9fs_vfs_rename() 1002 v9fs_invalidate_inode_attr(old_inode); in v9fs_vfs_rename()
|
/linux-6.3-rc2/fs/btrfs/ |
A D | inode.c | 8775 BTRFS_I(old_inode)->dir_index = 0ULL; in btrfs_rename_exchange() 8809 inode_inc_iversion(old_inode); in btrfs_rename_exchange() 8815 old_inode->i_ctime = ctime; in btrfs_rename_exchange() 8820 BTRFS_I(old_inode), 1); in btrfs_rename_exchange() 8869 if (old_inode->i_nlink == 1) in btrfs_rename_exchange() 8995 filemap_flush(old_inode->i_mapping); in btrfs_rename() 9065 BTRFS_I(old_inode)->dir_index = 0ULL; in btrfs_rename() 9079 inode_inc_iversion(old_inode); in btrfs_rename() 9084 old_inode->i_ctime = old_dir->i_mtime; in btrfs_rename() 9088 BTRFS_I(old_inode), 1); in btrfs_rename() [all …]
|
/linux-6.3-rc2/fs/nfs/ |
A D | dir.c | 2649 struct inode *old_inode = d_inode(old_dentry); in nfs_rename() local 2713 if (S_ISREG(old_inode->i_mode)) in nfs_rename() 2714 nfs_sync_inode(old_inode); in nfs_rename() 2732 spin_lock(&old_inode->i_lock); in nfs_rename() 2733 NFS_I(old_inode)->attr_gencount = nfs_inc_attr_generation_counter(); in nfs_rename() 2734 nfs_set_cache_invalid(old_inode, NFS_INO_INVALID_CHANGE | in nfs_rename() 2737 spin_unlock(&old_inode->i_lock); in nfs_rename()
|
/linux-6.3-rc2/fs/quota/ |
A D | dquot.c | 962 struct inode *inode, *old_inode = NULL; in add_dquot_ref() local 985 iput(old_inode); in add_dquot_ref() 1000 old_inode = inode; in add_dquot_ref() 1005 iput(old_inode); in add_dquot_ref()
|
/linux-6.3-rc2/security/selinux/ |
A D | hooks.c | 3008 static int selinux_inode_rename(struct inode *old_inode, struct dentry *old_dentry, in selinux_inode_rename() argument 3011 return may_rename(old_inode, old_dentry, new_inode, new_dentry); in selinux_inode_rename()
|