Lines Matching refs:new_dentry
379 struct inode *new_dir, struct dentry *new_dentry) in simple_offset_rename() argument
383 long new_offset = dentry2offset(new_dentry); in simple_offset_rename()
388 offset_set(new_dentry, 0); in simple_offset_rename()
410 struct dentry *new_dentry) in simple_offset_rename_exchange() argument
415 long new_index = dentry2offset(new_dentry); in simple_offset_rename_exchange()
419 simple_offset_remove(new_ctx, new_dentry); in simple_offset_rename_exchange()
425 ret = simple_offset_replace(old_ctx, new_dentry, old_index); in simple_offset_rename_exchange()
431 ret = simple_rename_exchange(old_dir, old_dentry, new_dir, new_dentry); in simple_offset_rename_exchange()
434 simple_offset_remove(old_ctx, new_dentry); in simple_offset_rename_exchange()
441 (void)simple_offset_replace(new_ctx, new_dentry, new_index); in simple_offset_rename_exchange()
812 struct inode *new_dir, struct dentry *new_dentry) in simple_rename_timestamp() argument
814 struct inode *newino = d_inode(new_dentry); in simple_rename_timestamp()
827 struct inode *new_dir, struct dentry *new_dentry) in simple_rename_exchange() argument
830 bool new_is_dir = d_is_dir(new_dentry); in simple_rename_exchange()
841 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in simple_rename_exchange()
848 struct dentry *new_dentry, unsigned int flags) in simple_rename() argument
856 return simple_rename_exchange(old_dir, old_dentry, new_dir, new_dentry); in simple_rename()
858 if (!simple_empty(new_dentry)) in simple_rename()
861 if (d_really_is_positive(new_dentry)) { in simple_rename()
862 simple_unlink(new_dir, new_dentry); in simple_rename()
864 drop_nlink(d_inode(new_dentry)); in simple_rename()
872 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in simple_rename()