/linux/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 | 902 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() 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() 1004 fat_detach(old_inode); in vfat_rename() [all …]
|
/linux/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/fs/f2fs/ |
A D | namei.c | 990 if (S_ISDIR(old_inode->i_mode)) { in f2fs_rename() 1051 down_write(&F2FS_I(old_inode)->i_sem); in f2fs_rename() 1053 file_lost_pino(old_inode); in f2fs_rename() 1057 up_write(&F2FS_I(old_inode)->i_sem); in f2fs_rename() 1059 old_inode->i_ctime = current_time(old_inode); in f2fs_rename() 1080 f2fs_set_link(old_inode, old_dir_entry, in f2fs_rename() 1088 if (S_ISDIR(old_inode->i_mode)) in f2fs_rename() 1166 if (S_ISDIR(old_inode->i_mode)) { in f2fs_cross_rename() 1217 down_write(&F2FS_I(old_inode)->i_sem); in f2fs_cross_rename() 1219 file_lost_pino(old_inode); in f2fs_cross_rename() [all …]
|
/linux/fs/ext2/ |
A D | namei.c | 329 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()
|
/linux/fs/sysv/ |
A D | namei.c | 196 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()
|
/linux/fs/minix/ |
A D | namei.c | 192 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()
|
/linux/fs/reiserfs/ |
A D | namei.c | 1321 struct inode *old_inode, *new_dentry_inode; in reiserfs_rename() local 1352 old_inode = d_inode(old_dentry); in reiserfs_rename() 1376 old_inode_mode = old_inode->i_mode; in reiserfs_rename() 1420 new_dentry->d_name.len, old_inode, 0); in reiserfs_rename() 1439 reiserfs_update_inode_transaction(old_inode); in reiserfs_rename() 1487 if (S_ISDIR(old_inode->i_mode)) { in reiserfs_rename() 1503 reiserfs_prepare_for_journal(old_inode->i_sb, in reiserfs_rename() 1530 &old_de, old_inode)) { in reiserfs_rename() 1536 reiserfs_restore_prepared_buffer(old_inode-> in reiserfs_rename() 1584 old_inode->i_ctime = ctime; in reiserfs_rename() [all …]
|
/linux/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/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/fs/udf/ |
A D | namei.c | 1080 struct inode *old_inode = d_inode(old_dentry); in udf_rename() local 1105 != 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() 1160 old_inode->i_ctime = current_time(old_inode); in udf_rename() 1161 mark_inode_dirty(old_inode); in udf_rename() 1188 mark_inode_dirty(old_inode); in udf_rename() [all …]
|
/linux/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/fs/ocfs2/ |
A D | namei.c | 1209 struct inode *old_inode = d_inode(old_dentry); in ocfs2_rename() local 1280 old_inode->i_ino); in ocfs2_rename() 1287 (unsigned long long)old_inode->i_ino, in ocfs2_rename() 1341 if (S_ISDIR(old_inode->i_mode)) { in ocfs2_rename() 1346 old_inode, in ocfs2_rename() 1514 old_inode); in ocfs2_rename() 1538 OCFS2_I(old_inode)->ip_blkno, in ocfs2_rename() 1542 old_inode->i_ctime = current_time(old_inode); in ocfs2_rename() 1543 mark_inode_dirty(old_inode); in ocfs2_rename() 1658 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/fs/ubifs/ |
A D | dir.c | 1255 struct inode *old_inode = d_inode(old_dentry); in do_rename() local 1258 struct ubifs_inode *old_inode_ui = ubifs_inode(old_inode); in do_rename() 1261 int is_dir = S_ISDIR(old_inode->i_mode); in do_rename() 1281 old_dentry, old_inode->i_ino, old_dir->i_ino, in do_rename() 1357 old_inode->i_ctime = time; in do_rename() 1415 if (IS_SYNC(old_inode)) { in do_rename() 1444 err = ubifs_jnl_rename(c, old_dir, old_inode, &old_nm, new_dir, in do_rename() 1454 mark_inode_dirty_sync(old_inode); in do_rename() 1459 if (IS_SYNC(old_inode)) in do_rename() 1460 err = old_inode->i_sb->s_op->write_inode(old_inode, NULL); in do_rename()
|
A D | journal.c | 1215 const struct inode *old_inode, in ubifs_jnl_rename() argument 1272 dent->inum = cpu_to_le64(old_inode->i_ino); in ubifs_jnl_rename() 1273 dent->type = get_dent_type(old_inode->i_mode); in ubifs_jnl_rename()
|
A D | ubifs.h | 1780 const struct inode *old_inode,
|
/linux/fs/exfat/ |
A D | namei.c | 1334 struct inode *old_inode, *new_inode; in exfat_rename() local 1348 old_inode = old_dentry->d_inode; in exfat_rename() 1351 err = __exfat_rename(old_dir, EXFAT_I(old_inode), new_dir, new_dentry); in exfat_rename() 1364 i_pos = ((loff_t)EXFAT_I(old_inode)->dir.dir << 32) | in exfat_rename() 1365 (EXFAT_I(old_inode)->entry & 0xffffffff); in exfat_rename() 1366 exfat_unhash_inode(old_inode); in exfat_rename() 1367 exfat_hash_inode(old_inode, i_pos); in exfat_rename() 1369 exfat_sync_inode(old_inode); in exfat_rename() 1371 mark_inode_dirty(old_inode); in exfat_rename() 1373 if (S_ISDIR(old_inode->i_mode) && old_dir != new_dir) { in exfat_rename()
|
/linux/block/ |
A D | bdev.c | 1028 struct inode *inode, *old_inode = NULL; in sync_bdevs() local 1052 iput(old_inode); in sync_bdevs() 1053 old_inode = inode; in sync_bdevs() 1075 iput(old_inode); in sync_bdevs()
|
/linux/fs/9p/ |
A D | vfs_inode.c | 927 struct inode *old_inode; in v9fs_vfs_rename() local 940 old_inode = d_inode(old_dentry); in v9fs_vfs_rename() 942 v9ses = v9fs_inode2v9ses(old_inode); in v9fs_vfs_rename() 998 if (S_ISDIR(old_inode->i_mode)) { in v9fs_vfs_rename() 1003 v9fs_invalidate_inode_attr(old_inode); in v9fs_vfs_rename()
|
/linux/fs/btrfs/ |
A D | inode.c | 9387 BTRFS_I(old_inode)->dir_index = 0ULL; in btrfs_rename_exchange() 9427 inode_inc_iversion(old_inode); in btrfs_rename_exchange() 9431 old_inode->i_ctime = ctime; in btrfs_rename_exchange() 9436 BTRFS_I(old_inode), 1); in btrfs_rename_exchange() 9512 if (old_inode->i_nlink == 1) in btrfs_rename_exchange() 9677 filemap_flush(old_inode->i_mapping); in btrfs_rename() 9712 BTRFS_I(old_inode)->dir_index = 0ULL; in btrfs_rename() 9728 inode_inc_iversion(old_inode); in btrfs_rename() 9735 BTRFS_I(old_inode), 1); in btrfs_rename() 9801 if (old_inode->i_nlink == 1) in btrfs_rename() [all …]
|
/linux/fs/nfs/ |
A D | dir.c | 2421 struct inode *old_inode = d_inode(old_dentry); in nfs_rename() local 2487 spin_lock(&old_inode->i_lock); in nfs_rename() 2488 NFS_I(old_inode)->attr_gencount = nfs_inc_attr_generation_counter(); in nfs_rename() 2489 nfs_set_cache_invalid(old_inode, NFS_INO_INVALID_CHANGE | in nfs_rename() 2492 spin_unlock(&old_inode->i_lock); in nfs_rename()
|
/linux/fs/quota/ |
A D | dquot.c | 947 struct inode *inode, *old_inode = NULL; in add_dquot_ref() local 970 iput(old_inode); in add_dquot_ref() 985 old_inode = inode; in add_dquot_ref() 990 iput(old_inode); in add_dquot_ref()
|
/linux/security/selinux/ |
A D | hooks.c | 3116 static int selinux_inode_rename(struct inode *old_inode, struct dentry *old_dentry, in selinux_inode_rename() argument 3119 return may_rename(old_inode, old_dentry, new_inode, new_dentry); in selinux_inode_rename()
|