/linux-master/drivers/android/ |
H A D | binderfs.c | 354 struct inode *old_dir, struct dentry *old_dentry, 362 return simple_rename(idmap, old_dir, old_dentry, new_dir, 353 binderfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
|
/linux-master/fs/9p/ |
H A D | v9fs.h | 179 struct inode *old_dir, struct dentry *old_dentry,
|
H A D | vfs_inode.c | 822 * @old_dir: old dir inode 831 v9fs_vfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument 910 v9fs_dec_count(old_dir); 913 v9fs_invalidate_inode_attr(old_dir);
|
/linux-master/fs/affs/ |
H A D | affs.h | 182 struct inode *old_dir, struct dentry *old_dentry,
|
H A D | namei.c | 405 affs_rename(struct inode *old_dir, struct dentry *old_dentry, argument 408 struct super_block *sb = old_dir->i_sb; 431 affs_lock_dir(old_dir); 432 retval = affs_remove_hash(old_dir, bh); 433 affs_unlock_dir(old_dir); 443 /* TODO: move it back to old_dir, if error? */ 446 mark_buffer_dirty_inode(bh, retval ? old_dir : new_dir); 452 affs_xrename(struct inode *old_dir, struct dentry *old_dentry, argument 456 struct super_block *sb = old_dir->i_sb; 472 affs_lock_dir(old_dir); 506 affs_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument [all...] |
/linux-master/fs/afs/ |
H A D | dir.c | 41 static int afs_rename(struct mnt_idmap *idmap, struct inode *old_dir, 1921 static int afs_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument 1937 orig_dvnode = AFS_FS_I(old_dir);
|
/linux-master/fs/ |
H A D | bad_inode.c | 79 struct inode *old_dir, struct dentry *old_dentry, 78 bad_inode_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
|
/linux-master/fs/bfs/ |
H A D | dir.c | 202 static int bfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument 223 old_bh = bfs_find_entry(old_dir, &old_dentry->d_name, &old_de); 243 inode_set_mtime_to_ts(old_dir, inode_set_ctime_current(old_dir)); 244 mark_inode_dirty(old_dir); 249 mark_buffer_dirty_inode(old_bh, old_dir);
|
/linux-master/fs/btrfs/ |
H A D | inode.c | 8801 static int btrfs_rename_exchange(struct inode *old_dir, argument 8806 struct btrfs_fs_info *fs_info = inode_to_fs_info(old_dir); 8809 struct btrfs_root *root = BTRFS_I(old_dir)->root; 8835 ret = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_fname); 8863 trans_num_items = (old_dir == new_dir ? 9 : 10); 8903 ret = btrfs_set_inode_index(BTRFS_I(old_dir), &new_idx); 8929 btrfs_ino(BTRFS_I(old_dir)), 8939 inode_inc_iversion(old_dir); 8943 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); 8946 btrfs_record_unlink_dir(trans, BTRFS_I(old_dir), 9053 btrfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument 9289 btrfs_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument [all...] |
H A D | ioctl.c | 2423 struct inode *old_dir; local 2461 old_dir = dir; 2481 if (old_dir != dir && idmap != &nop_mnt_idmap) {
|
H A D | tree-log.c | 7440 * @old_dir: The inode of the previous parent directory for the case 7443 * only for rename operations (when @old_dir is not NULL). 7452 struct dentry *old_dentry, struct btrfs_inode *old_dir, 7476 if (!old_dir) 7479 * If the inode was not logged and we are doing a rename (old_dir is not 7480 * NULL), check if old_dir was logged - if it was not we can return and 7483 ret = inode_logged(trans, old_dir, NULL); 7492 * If we are doing a rename (old_dir is not NULL) from a directory that 7498 if (old_dir && old_dir 7451 btrfs_log_new_name(struct btrfs_trans_handle *trans, struct dentry *old_dentry, struct btrfs_inode *old_dir, u64 old_dir_index, struct dentry *parent) argument [all...] |
H A D | tree-log.h | 98 struct dentry *old_dentry, struct btrfs_inode *old_dir,
|
/linux-master/fs/cachefiles/ |
H A D | namei.c | 388 .old_dir = d_inode(dir),
|
/linux-master/fs/ceph/ |
H A D | dir.c | 1424 static int ceph_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument 1428 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(old_dir->i_sb); 1437 if (ceph_snap(old_dir) != ceph_snap(new_dir)) 1439 if (ceph_snap(old_dir) != CEPH_NOSNAP) { 1440 if (old_dir == new_dir && ceph_snap(old_dir) == CEPH_SNAPDIR) 1446 if ((old_dir != new_dir) && 1447 (!ceph_quota_is_same_realm(old_dir, new_dir))) 1454 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, 1460 ceph_vinop(old_dir), old_dentr [all...] |
H A D | mds_client.c | 3771 struct inode *old_dir = req->r_old_dentry_dir; local 3775 dir, old_dir); 3778 if (old_dir) 3779 ceph_dir_clear_complete(old_dir);
|
/linux-master/fs/coda/ |
H A D | dir.c | 298 static int coda_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument 311 error = venus_rename(old_dir->i_sb, coda_i2f(old_dir), 317 coda_dir_drop_nlink(old_dir); 322 coda_dir_update_mtime(old_dir);
|
/linux-master/fs/crypto/ |
H A D | hooks.c | 69 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, argument 81 if (old_dir != new_dir) { 88 IS_ENCRYPTED(old_dir) && 89 !fscrypt_has_permitted_context(old_dir,
|
/linux-master/fs/debugfs/ |
H A D | inode.c | 856 * @old_dir: a pointer to the parent dentry for the renamed object. This 873 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, argument 880 if (IS_ERR(old_dir)) 881 return old_dir; 887 trap = lock_rename(new_dir, old_dir); 889 if (d_really_is_negative(old_dir) || d_really_is_negative(new_dir)) 902 error = simple_rename(&nop_mnt_idmap, d_inode(old_dir), old_dentry, 909 fsnotify_move(d_inode(old_dir), d_inode(new_dir), &old_name.name, 913 unlock_rename(new_dir, old_dir); 919 unlock_rename(new_dir, old_dir); [all...] |
/linux-master/fs/ecryptfs/ |
H A D | inode.c | 585 ecryptfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument 630 rd.old_dir = d_inode(lower_old_dir_dentry); 642 if (new_dir != old_dir) 643 fsstack_copy_attr_all(old_dir, d_inode(lower_old_dir_dentry));
|
/linux-master/fs/exfat/ |
H A D | namei.c | 1233 struct inode *old_dir, struct dentry *old_dentry, 1238 struct super_block *sb = old_dir->i_sb; 1255 err = __exfat_rename(old_dir, EXFAT_I(old_inode), new_dir, new_dentry); 1260 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); 1277 if (S_ISDIR(old_inode->i_mode) && old_dir != new_dir) { 1278 drop_nlink(old_dir); 1283 inode_inc_iversion(old_dir); 1284 if (new_dir != old_dir) 1285 mark_inode_dirty(old_dir); 1232 exfat_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
|
/linux-master/fs/ext2/ |
H A D | namei.c | 318 struct inode * old_dir, struct dentry * old_dentry, 334 err = dquot_initialize(old_dir); 342 old_de = ext2_find_entry(old_dir, &old_dentry->d_name, &old_folio); 346 if (old_is_dir && old_dir != new_dir) { 392 if (old_dir != new_dir) 396 inode_dec_link_count(old_dir); 317 ext2_rename(struct mnt_idmap * idmap, struct inode * old_dir, struct dentry * old_dentry, struct inode * new_dir, struct dentry * new_dentry, unsigned int flags) argument
|
/linux-master/fs/ext4/ |
H A D | namei.c | 3796 static int ext4_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument 3802 .dir = old_dir, 4050 static int ext4_cross_rename(struct inode *old_dir, struct dentry *old_dentry, argument 4055 .dir = old_dir, 4070 (ext4_test_inode_flag(old_dir, EXT4_INODE_PROJINHERIT) && 4071 !projid_eq(EXT4_I(old_dir)->i_projid, 4192 struct inode *old_dir, struct dentry *old_dentry, 4198 if (unlikely(ext4_forced_shutdown(old_dir->i_sb))) 4204 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, 4210 return ext4_cross_rename(old_dir, old_dentr 4191 ext4_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument [all...] |
/linux-master/fs/f2fs/ |
H A D | namei.c | 953 static int f2fs_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument 957 struct f2fs_sb_info *sbi = F2FS_I_SB(old_dir); 981 * add a link in old_dir which can convert inline_dir. 987 if (old_dir == new_dir && !new_inode) { 988 err = f2fs_try_convert_inline_dir(old_dir, new_dentry); 996 err = f2fs_setup_filename(old_dir, &old_dentry->d_name, 1001 err = f2fs_create_whiteout(idmap, old_dir, &whiteout, &fname); 1006 err = f2fs_dquot_initialize(old_dir); 1021 old_entry = f2fs_find_entry(old_dir, &old_dentry->d_name, &old_page); 1028 if (old_is_dir && old_dir ! 1149 f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument 1314 f2fs_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument [all...] |
/linux-master/fs/fat/ |
H A D | namei_msdos.c | 428 static int do_msdos_rename(struct inode *old_dir, unsigned char *old_name, argument 445 err = fat_scan(old_dir, old_name, &old_sinfo); 452 update_dotdot = (is_dir && old_dir != new_dir); 473 if (IS_DIRSYNC(old_dir)) { 482 inode_inc_iversion(old_dir); 483 fat_truncate_time(old_dir, NULL, S_CTIME|S_MTIME); 484 if (IS_DIRSYNC(old_dir)) 485 (void)fat_sync_inode(old_dir); 487 mark_inode_dirty(old_dir); 533 drop_nlink(old_dir); 597 msdos_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument [all...] |
H A D | namei_vfat.c | 931 static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry, argument 941 struct super_block *sb = old_dir->i_sb; 947 err = vfat_find(old_dir, &old_dentry->d_name, &old_sinfo); 951 if (old_dir != new_dir) { 958 ts = current_time(old_dir); 987 drop_nlink(old_dir); 992 err = fat_remove_entries(old_dir, &old_sinfo); /* and releases bh */ 996 vfat_update_dir_metadata(old_dir, &ts); 1017 corrupt |= vfat_update_dotdot_de(old_dir, old_inode, dotdot_bh, 1060 static int vfat_rename_exchange(struct inode *old_dir, struc argument 1161 vfat_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument [all...] |