/fs/ |
D | namei.c | 2378 int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry) in vfs_link() argument 2386 error = may_create(dir, new_dentry); in vfs_link() 2403 error = security_inode_link(old_dentry, dir, new_dentry); in vfs_link() 2409 error = dir->i_op->link(old_dentry, dir, new_dentry); in vfs_link() 2412 fsnotify_link(dir, inode, new_dentry); in vfs_link() 2428 struct dentry *new_dentry; in SYSCALL_DEFINE5() local 2449 new_dentry = lookup_create(&nd, 0); in SYSCALL_DEFINE5() 2450 error = PTR_ERR(new_dentry); in SYSCALL_DEFINE5() 2451 if (IS_ERR(new_dentry)) in SYSCALL_DEFINE5() 2456 error = security_path_link(old_path.dentry, &nd.path, new_dentry); in SYSCALL_DEFINE5() [all …]
|
/fs/smbfs/ |
D | dir.c | 623 struct inode *new_dir, struct dentry *new_dentry) in smb_rename() argument 634 if (new_dentry->d_inode) { in smb_rename() 635 smb_close(new_dentry->d_inode); in smb_rename() 636 error = smb_proc_unlink(new_dentry); in smb_rename() 639 DENTRY_PATH(new_dentry), error); in smb_rename() 643 d_delete(new_dentry); in smb_rename() 648 error = smb_proc_mv(old_dentry, new_dentry); in smb_rename() 651 smb_renew_times(new_dentry); in smb_rename() 688 smb_link(struct dentry *dentry, struct inode *dir, struct dentry *new_dentry) in smb_link() argument 693 DENTRY_PATH(dentry), DENTRY_PATH(new_dentry)); in smb_link() [all …]
|
D | proto.h | 21 extern int smb_proc_mv(struct dentry *old_dentry, struct dentry *new_dentry); 35 …rn int smb_proc_link(struct smb_sb_info *server, struct dentry *dentry, struct dentry *new_dentry);
|
/fs/sysfs/ |
D | dir.c | 799 struct dentry *old_dentry = NULL, *new_dentry = NULL; in sysfs_rename_dir() local 828 new_dentry = d_alloc_name(parent, new_name); in sysfs_rename_dir() 829 if (!new_dentry) in sysfs_rename_dir() 842 d_add(new_dentry, NULL); in sysfs_rename_dir() 843 d_move(old_dentry, new_dentry); in sysfs_rename_dir() 851 dput(new_dentry); in sysfs_rename_dir() 862 struct dentry *old_dentry = NULL, *new_dentry = NULL; in sysfs_move_dir() local 902 new_dentry = d_alloc_name(new_parent, sd->s_name); in sysfs_move_dir() 903 if (!new_dentry) in sysfs_move_dir() 907 d_add(new_dentry, NULL); in sysfs_move_dir() [all …]
|
/fs/affs/ |
D | namei.c | 398 struct inode *new_dir, struct dentry *new_dentry) in affs_rename() argument 406 (u32)new_dir->i_ino, (int)new_dentry->d_name.len, new_dentry->d_name.name); in affs_rename() 408 retval = affs_check_name(new_dentry->d_name.name,new_dentry->d_name.len); in affs_rename() 413 if (new_dentry->d_inode) { in affs_rename() 414 retval = affs_remove_header(new_dentry); in affs_rename() 431 affs_copy_name(AFFS_TAIL(sb, bh)->name, new_dentry); in affs_rename()
|
/fs/hfs/ |
D | dir.c | 295 struct inode *new_dir, struct dentry *new_dentry) in hfs_rename() argument 300 if (new_dentry->d_inode) { in hfs_rename() 301 res = hfs_unlink(new_dir, new_dentry); in hfs_rename() 308 new_dir, &new_dentry->d_name); in hfs_rename() 312 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
|
/fs/bfs/ |
D | dir.c | 222 struct inode *new_dir, struct dentry *new_dentry) in bfs_rename() argument 246 new_inode = new_dentry->d_inode; in bfs_rename() 248 new_dentry->d_name.name, in bfs_rename() 249 new_dentry->d_name.len, &new_de); in bfs_rename() 257 new_dentry->d_name.name, in bfs_rename() 258 new_dentry->d_name.len, in bfs_rename()
|
/fs/nfs/ |
D | dir.c | 1574 struct inode *new_dir, struct dentry *new_dentry) in nfs_rename() argument 1577 struct inode *new_inode = new_dentry->d_inode; in nfs_rename() 1585 if (!d_unhashed(new_dentry)) { in nfs_rename() 1586 d_drop(new_dentry); in nfs_rename() 1587 rehash = new_dentry; in nfs_rename() 1592 new_dentry->d_parent->d_name.name, new_dentry->d_name.name, in nfs_rename() 1593 atomic_read(&new_dentry->d_count)); in nfs_rename() 1609 } else if (atomic_read(&new_dentry->d_count) > 2) { in nfs_rename() 1612 dentry = d_alloc(new_dentry->d_parent, in nfs_rename() 1613 &new_dentry->d_name); in nfs_rename() [all …]
|
/fs/minix/ |
D | namei.c | 189 struct inode * new_dir, struct dentry *new_dentry) in minix_rename() argument 193 struct inode * new_inode = new_dentry->d_inode; in minix_rename() 220 new_de = minix_find_entry(new_dentry, &new_page); in minix_rename() 236 err = minix_add_link(new_dentry, old_inode); in minix_rename()
|
/fs/ocfs2/ |
D | namei.c | 1005 struct dentry *new_dentry) in ocfs2_rename() argument 1010 struct inode *new_inode = new_dentry->d_inode; in ocfs2_rename() 1035 old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename() 1037 new_dentry->d_name.len, new_dentry->d_name.name); in ocfs2_rename() 1152 status = ocfs2_find_files_on_disk(new_dentry->d_name.name, in ocfs2_rename() 1153 new_dentry->d_name.len, in ocfs2_rename() 1188 "didn't give us one.\n", new_dentry->d_name.len, in ocfs2_rename() 1189 new_dentry->d_name.name); in ocfs2_rename() 1211 status = ocfs2_remote_dentry_delete(new_dentry); in ocfs2_rename() 1235 BUG_ON(new_dentry->d_parent->d_inode != new_dir); in ocfs2_rename() [all …]
|
/fs/sysv/ |
D | namei.c | 215 struct inode * new_dir, struct dentry * new_dentry) in sysv_rename() argument 218 struct inode * new_inode = new_dentry->d_inode; in sysv_rename() 245 new_de = sysv_find_entry(new_dentry, &new_page); in sysv_rename() 261 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
|
/fs/omfs/ |
D | dir.c | 390 struct inode *new_dir, struct dentry *new_dentry) in omfs_rename() argument 392 struct inode *new_inode = new_dentry->d_inode; in omfs_rename() 407 bh = omfs_find_entry(new_dir, new_dentry->d_name.name, in omfs_rename() 408 new_dentry->d_name.len); in omfs_rename() 413 err = omfs_unlink(new_dir, new_dentry); in omfs_rename() 427 err = omfs_add_link(new_dentry, old_inode); in omfs_rename()
|
/fs/coda/ |
D | dir.c | 42 struct inode *new_inode, struct dentry *new_dentry); 397 struct inode *new_dir, struct dentry *new_dentry) in coda_rename() argument 400 const char *new_name = new_dentry->d_name.name; in coda_rename() 402 int new_length = new_dentry->d_name.len; in coda_rename() 412 if ( new_dentry->d_inode ) { in coda_rename() 413 if ( S_ISDIR(new_dentry->d_inode->i_mode) ) { in coda_rename() 419 coda_flag_inode(new_dentry->d_inode, C_VATTR); in coda_rename()
|
/fs/ncpfs/ |
D | dir.c | 211 struct inode *new_dir, struct dentry* new_dentry, char *_new_name) in ncp_force_rename() argument 229 if (new_dentry && new_dentry->d_inode) { in ncp_force_rename() 230 new_nwattr = NCP_FINFO(new_dentry->d_inode)->nwattr; in ncp_force_rename() 1110 struct inode *new_dir, struct dentry *new_dentry) in ncp_rename() argument 1119 new_dentry->d_parent->d_name.name, new_dentry->d_name.name); in ncp_rename() 1127 ncp_age_dentry(server, new_dentry); in ncp_rename() 1138 new_dentry->d_name.name, new_dentry->d_name.len, in ncp_rename() 1149 new_dir, new_dentry, __new_name); in ncp_rename() 1155 old_dentry->d_name.name,new_dentry->d_name.name); in ncp_rename()
|
/fs/ufs/ |
D | namei.c | 274 struct inode *new_dir, struct dentry *new_dentry) in ufs_rename() argument 277 struct inode *new_inode = new_dentry->d_inode; in ufs_rename() 304 new_de = ufs_find_entry(new_dir, new_dentry, &new_page); in ufs_rename() 320 err = ufs_add_link(new_dentry, old_inode); in ufs_rename()
|
/fs/jffs2/ |
D | dir.c | 783 struct inode *new_dir_i, struct dentry *new_dentry) in jffs2_rename() argument 796 if (new_dentry->d_inode) { in jffs2_rename() 797 victim_f = JFFS2_INODE_INFO(new_dentry->d_inode); in jffs2_rename() 798 if (S_ISDIR(new_dentry->d_inode->i_mode)) { in jffs2_rename() 826 new_dentry->d_name.name, new_dentry->d_name.len, now); in jffs2_rename() 833 drop_nlink(new_dentry->d_inode); in jffs2_rename() 838 if (S_ISDIR(new_dentry->d_inode->i_mode)) in jffs2_rename() 868 d_instantiate(new_dentry, old_dentry->d_inode); in jffs2_rename()
|
/fs/fat/ |
D | namei_msdos.c | 448 struct dentry *new_dentry, int is_hid) in do_msdos_rename() argument 460 new_inode = new_dentry->d_inode; in do_msdos_rename() 620 struct inode *new_dir, struct dentry *new_dentry) in msdos_rename() argument 633 err = msdos_format_name(new_dentry->d_name.name, in msdos_rename() 634 new_dentry->d_name.len, new_msdos_name, in msdos_rename() 640 (new_dentry->d_name.name[0] == '.') && (new_msdos_name[0] != '.'); in msdos_rename() 643 new_dir, new_msdos_name, new_dentry, is_hid); in msdos_rename()
|
/fs/ubifs/ |
D | journal.c | 901 const struct dentry *new_dentry, int sync) in ubifs_jnl_rename() argument 908 const struct inode *new_inode = new_dentry->d_inode; in ubifs_jnl_rename() 916 old_dir->i_ino, new_dentry->d_name.len, in ubifs_jnl_rename() 917 new_dentry->d_name.name, new_dir->i_ino); in ubifs_jnl_rename() 923 dlen1 = UBIFS_DENT_NODE_SZ + new_dentry->d_name.len + 1; in ubifs_jnl_rename() 950 dent_key_init_flash(c, &dent->key, new_dir->i_ino, &new_dentry->d_name); in ubifs_jnl_rename() 953 dent->nlen = cpu_to_le16(new_dentry->d_name.len); in ubifs_jnl_rename() 954 memcpy(dent->name, new_dentry->d_name.name, new_dentry->d_name.len); in ubifs_jnl_rename() 955 dent->name[new_dentry->d_name.len] = '\0'; in ubifs_jnl_rename() 1009 dent_key_init(c, &key, new_dir->i_ino, &new_dentry->d_name); in ubifs_jnl_rename() [all …]
|
D | dir.c | 968 struct inode *new_dir, struct dentry *new_dentry) in ubifs_rename() argument 972 struct inode *new_inode = new_dentry->d_inode; in ubifs_rename() 977 int new_sz = CALC_DENT_SIZE(new_dentry->d_name.len); in ubifs_rename() 996 old_inode->i_ino, old_dir->i_ino, new_dentry->d_name.len, in ubifs_rename() 997 new_dentry->d_name.name, new_dir->i_ino); in ubifs_rename() 1088 err = ubifs_jnl_rename(c, old_dir, old_dentry, new_dir, new_dentry, in ubifs_rename()
|
/fs/ext2/ |
D | namei.c | 289 struct inode * new_dir, struct dentry * new_dentry ) in ext2_rename() argument 292 struct inode * new_inode = new_dentry->d_inode; in ext2_rename() 319 new_de = ext2_find_entry (new_dir, &new_dentry->d_name, &new_page); in ext2_rename() 335 err = ext2_add_link(new_dentry, old_inode); in ext2_rename()
|
/fs/hfsplus/ |
D | dir.c | 463 struct inode *new_dir, struct dentry *new_dentry) in hfsplus_rename() argument 468 if (new_dentry->d_inode) { in hfsplus_rename() 469 res = hfsplus_unlink(new_dir, new_dentry); in hfsplus_rename() 476 new_dir, &new_dentry->d_name); in hfsplus_rename() 478 new_dentry->d_fsdata = old_dentry->d_fsdata; in hfsplus_rename()
|
/fs/ecryptfs/ |
D | inode.c | 432 struct dentry *new_dentry) in ecryptfs_link() argument 442 lower_new_dentry = ecryptfs_dentry_to_lower(new_dentry); in ecryptfs_link() 450 rc = ecryptfs_interpose(lower_new_dentry, new_dentry, dir->i_sb, 0); in ecryptfs_link() 457 i_size_write(new_dentry->d_inode, file_size_save); in ecryptfs_link() 463 d_drop(new_dentry); in ecryptfs_link() 604 struct inode *new_dir, struct dentry *new_dentry) in ecryptfs_rename() argument 613 lower_new_dentry = ecryptfs_dentry_to_lower(new_dentry); in ecryptfs_rename()
|
/fs/configfs/ |
D | dir.c | 1385 struct dentry * new_dentry, * parent; 1398 new_dentry = lookup_one_len(new_name, parent, strlen(new_name)); 1399 if (!IS_ERR(new_dentry)) { 1400 if (!new_dentry->d_inode) { 1403 d_add(new_dentry, NULL); 1404 d_move(item->dentry, new_dentry); 1407 d_delete(new_dentry); 1410 dput(new_dentry);
|
/fs/reiserfs/ |
D | namei.c | 1227 struct inode *new_dir, struct dentry *new_dentry) in reiserfs_rename() argument 1255 new_dentry_inode = new_dentry->d_inode; in reiserfs_rename() 1317 reiserfs_add_entry(&th, new_dir, new_dentry->d_name.name, in reiserfs_rename() 1318 new_dentry->d_name.len, old_inode, 0); in reiserfs_rename() 1360 reiserfs_find_entry(new_dir, new_dentry->d_name.name, in reiserfs_rename() 1361 new_dentry->d_name.len, &new_entry_path, in reiserfs_rename() 1410 !entry_points_to_object(new_dentry->d_name.name, in reiserfs_rename() 1411 new_dentry->d_name.len, in reiserfs_rename()
|
/fs/afs/ |
D | dir.c | 41 struct inode *new_dir, struct dentry *new_dentry); 1102 struct inode *new_dir, struct dentry *new_dentry) in afs_rename() argument 1116 new_dentry->d_name.name); in afs_rename() 1119 if (new_dentry->d_name.len >= AFSNAMEMAX) in afs_rename() 1130 new_dentry->d_name.name); in afs_rename() 1140 d_drop(new_dentry); in afs_rename()
|