/linux-2.6.39/fs/ |
D | namei.c | 2918 int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry) in vfs_link() argument 2926 error = may_create(dir, new_dentry); in vfs_link() 2943 error = security_inode_link(old_dentry, dir, new_dentry); in vfs_link() 2952 error = dir->i_op->link(old_dentry, dir, new_dentry); in vfs_link() 2955 fsnotify_link(dir, inode, new_dentry); in vfs_link() 2971 struct dentry *new_dentry; in SYSCALL_DEFINE5() local 3004 new_dentry = lookup_create(&nd, 0); in SYSCALL_DEFINE5() 3005 error = PTR_ERR(new_dentry); in SYSCALL_DEFINE5() 3006 if (IS_ERR(new_dentry)) in SYSCALL_DEFINE5() 3011 error = security_path_link(old_path.dentry, &nd.path, new_dentry); in SYSCALL_DEFINE5() [all …]
|
/linux-2.6.39/fs/affs/ |
D | namei.c | 414 struct inode *new_dir, struct dentry *new_dentry) in affs_rename() argument 422 (u32)new_dir->i_ino, (int)new_dentry->d_name.len, new_dentry->d_name.name); in affs_rename() 424 retval = affs_check_name(new_dentry->d_name.name,new_dentry->d_name.len); in affs_rename() 429 if (new_dentry->d_inode) { in affs_rename() 430 retval = affs_remove_header(new_dentry); in affs_rename() 447 affs_copy_name(AFFS_TAIL(sb, bh)->name, new_dentry); in affs_rename()
|
/linux-2.6.39/fs/hfs/ |
D | dir.c | 280 struct inode *new_dir, struct dentry *new_dentry) in hfs_rename() argument 285 if (new_dentry->d_inode) { in hfs_rename() 286 res = hfs_remove(new_dir, new_dentry); in hfs_rename() 293 new_dir, &new_dentry->d_name); in hfs_rename() 297 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
|
/linux-2.6.39/fs/nfs/ |
D | unlink.c | 353 struct dentry *new_dentry; member 381 d_move(data->old_dentry, data->new_dentry); in nfs_async_rename_done() 397 dput(data->new_dentry); in nfs_async_rename_release() 437 struct dentry *old_dentry, struct dentry *new_dentry) in nfs_async_rename() argument 471 data->new_dentry = dget(new_dentry); in nfs_async_rename() 479 data->args.new_name = &new_dentry->d_name; in nfs_async_rename()
|
D | dir.c | 1948 struct inode *new_dir, struct dentry *new_dentry) in nfs_rename() argument 1951 struct inode *new_inode = new_dentry->d_inode; in nfs_rename() 1957 new_dentry->d_parent->d_name.name, new_dentry->d_name.name, in nfs_rename() 1958 new_dentry->d_count); in nfs_rename() 1971 if (!d_unhashed(new_dentry)) { in nfs_rename() 1972 d_drop(new_dentry); in nfs_rename() 1973 rehash = new_dentry; in nfs_rename() 1976 if (new_dentry->d_count > 2) { in nfs_rename() 1980 dentry = d_alloc(new_dentry->d_parent, in nfs_rename() 1981 &new_dentry->d_name); in nfs_rename() [all …]
|
/linux-2.6.39/fs/minix/ |
D | namei.c | 182 struct inode * new_dir, struct dentry *new_dentry) in minix_rename() argument 186 struct inode * new_inode = new_dentry->d_inode; in minix_rename() 213 new_de = minix_find_entry(new_dentry, &new_page); in minix_rename() 227 err = minix_add_link(new_dentry, old_inode); in minix_rename()
|
/linux-2.6.39/security/tomoyo/ |
D | tomoyo.c | 159 struct dentry *new_dentry) in tomoyo_path_link() argument 162 struct path path2 = { new_dir->mnt, new_dentry }; in tomoyo_path_link() 169 struct dentry *new_dentry) in tomoyo_path_rename() argument 172 struct path path2 = { new_parent->mnt, new_dentry }; in tomoyo_path_rename()
|
/linux-2.6.39/fs/bfs/ |
D | dir.c | 219 struct inode *new_dir, struct dentry *new_dentry) in bfs_rename() argument 243 new_inode = new_dentry->d_inode; in bfs_rename() 245 new_dentry->d_name.name, in bfs_rename() 246 new_dentry->d_name.len, &new_de); in bfs_rename() 254 new_dentry->d_name.name, in bfs_rename() 255 new_dentry->d_name.len, in bfs_rename()
|
/linux-2.6.39/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() 259 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
|
/linux-2.6.39/fs/logfs/ |
D | dir.c | 617 struct inode *new_dir, struct dentry *new_dentry) in logfs_rename_cross() argument 641 err = logfs_write_dir(new_dir, new_dentry, old_dentry->d_inode); in logfs_rename_cross() 689 struct inode *new_dir, struct dentry *new_dentry) in logfs_rename_target() argument 693 struct inode *new_inode = new_dentry->d_inode; in logfs_rename_target() 723 err = logfs_replace_inode(new_dir, new_dentry, &dd, old_inode); in logfs_rename_target() 751 struct inode *new_dir, struct dentry *new_dentry) in logfs_rename() argument 753 if (new_dentry->d_inode) in logfs_rename() 755 new_dir, new_dentry); in logfs_rename() 756 return logfs_rename_cross(old_dir, old_dentry, new_dir, new_dentry); in logfs_rename()
|
/linux-2.6.39/fs/coda/ |
D | dir.c | 43 struct inode *new_inode, struct dentry *new_dentry); 354 struct inode *new_dir, struct dentry *new_dentry) in coda_rename() argument 357 const char *new_name = new_dentry->d_name.name; in coda_rename() 359 int new_length = new_dentry->d_name.len; in coda_rename() 366 if (new_dentry->d_inode) { in coda_rename() 367 if (S_ISDIR(new_dentry->d_inode->i_mode)) { in coda_rename() 373 coda_flag_inode(new_dentry->d_inode, C_VATTR); in coda_rename()
|
/linux-2.6.39/fs/hfsplus/ |
D | dir.c | 464 struct inode *new_dir, struct dentry *new_dentry) in hfsplus_rename() argument 469 if (new_dentry->d_inode) { in hfsplus_rename() 470 if (S_ISDIR(new_dentry->d_inode->i_mode)) in hfsplus_rename() 471 res = hfsplus_rmdir(new_dir, new_dentry); in hfsplus_rename() 473 res = hfsplus_unlink(new_dir, new_dentry); in hfsplus_rename() 480 new_dir, &new_dentry->d_name); in hfsplus_rename() 482 new_dentry->d_fsdata = old_dentry->d_fsdata; in hfsplus_rename()
|
/linux-2.6.39/fs/exofs/ |
D | namei.c | 242 struct inode *new_dir, struct dentry *new_dentry) in exofs_rename() argument 245 struct inode *new_inode = new_dentry->d_inode; in exofs_rename() 272 new_de = exofs_find_entry(new_dir, new_dentry, &new_page); in exofs_rename() 288 err = exofs_add_link(new_dentry, old_inode); in exofs_rename()
|
/linux-2.6.39/fs/ufs/ |
D | namei.c | 275 struct inode *new_dir, struct dentry *new_dentry) in ufs_rename() argument 278 struct inode *new_inode = new_dentry->d_inode; in ufs_rename() 305 new_de = ufs_find_entry(new_dir, &new_dentry->d_name, &new_page); in ufs_rename() 319 err = ufs_add_link(new_dentry, old_inode); in ufs_rename()
|
/linux-2.6.39/fs/ncpfs/ |
D | dir.c | 235 struct inode *new_dir, struct dentry* new_dentry, char *_new_name) in ncp_force_rename() argument 253 if (new_dentry && new_dentry->d_inode) { in ncp_force_rename() 254 new_nwattr = NCP_FINFO(new_dentry->d_inode)->nwattr; in ncp_force_rename() 1131 struct inode *new_dir, struct dentry *new_dentry) in ncp_rename() argument 1140 new_dentry->d_parent->d_name.name, new_dentry->d_name.name); in ncp_rename() 1143 ncp_age_dentry(server, new_dentry); in ncp_rename() 1154 new_dentry->d_name.name, new_dentry->d_name.len, in ncp_rename() 1165 new_dir, new_dentry, __new_name); in ncp_rename() 1171 old_dentry->d_name.name,new_dentry->d_name.name); in ncp_rename()
|
/linux-2.6.39/security/ |
D | security.c | 394 struct dentry *new_dentry) in security_path_link() argument 398 return security_ops->path_link(old_dentry, new_dir, new_dentry); in security_path_link() 402 struct path *new_dir, struct dentry *new_dentry) in security_path_rename() argument 405 (new_dentry->d_inode && IS_PRIVATE(new_dentry->d_inode)))) in security_path_rename() 408 new_dentry); in security_path_rename() 449 struct dentry *new_dentry) in security_inode_link() argument 453 return security_ops->inode_link(old_dentry, dir, new_dentry); in security_inode_link() 494 struct inode *new_dir, struct dentry *new_dentry) in security_inode_rename() argument 497 (new_dentry->d_inode && IS_PRIVATE(new_dentry->d_inode)))) in security_inode_rename() 500 new_dir, new_dentry); in security_inode_rename()
|
/linux-2.6.39/fs/jffs2/ |
D | dir.c | 779 struct inode *new_dir_i, struct dentry *new_dentry) in jffs2_rename() argument 792 if (new_dentry->d_inode) { in jffs2_rename() 793 victim_f = JFFS2_INODE_INFO(new_dentry->d_inode); in jffs2_rename() 794 if (S_ISDIR(new_dentry->d_inode->i_mode)) { in jffs2_rename() 822 new_dentry->d_name.name, new_dentry->d_name.len, now); in jffs2_rename() 829 drop_nlink(new_dentry->d_inode); in jffs2_rename() 834 if (S_ISDIR(new_dentry->d_inode->i_mode)) in jffs2_rename() 864 d_instantiate(new_dentry, old_dentry->d_inode); in jffs2_rename()
|
/linux-2.6.39/fs/fat/ |
D | namei_msdos.c | 446 struct dentry *new_dentry, int is_hid) in do_msdos_rename() argument 458 new_inode = new_dentry->d_inode; in do_msdos_rename() 618 struct inode *new_dir, struct dentry *new_dentry) in msdos_rename() argument 631 err = msdos_format_name(new_dentry->d_name.name, in msdos_rename() 632 new_dentry->d_name.len, new_msdos_name, in msdos_rename() 638 (new_dentry->d_name.name[0] == '.') && (new_msdos_name[0] != '.'); in msdos_rename() 641 new_dir, new_msdos_name, new_dentry, is_hid); in msdos_rename()
|
/linux-2.6.39/fs/ext2/ |
D | namei.c | 311 struct inode * new_dir, struct dentry * new_dentry ) in ext2_rename() argument 314 struct inode * new_inode = new_dentry->d_inode; in ext2_rename() 344 new_de = ext2_find_entry (new_dir, &new_dentry->d_name, &new_page); in ext2_rename() 358 err = ext2_add_link(new_dentry, old_inode); in ext2_rename()
|
/linux-2.6.39/fs/ubifs/ |
D | journal.c | 920 const struct dentry *new_dentry, int sync) in ubifs_jnl_rename() argument 927 const struct inode *new_inode = new_dentry->d_inode; in ubifs_jnl_rename() 935 old_dir->i_ino, new_dentry->d_name.len, in ubifs_jnl_rename() 936 new_dentry->d_name.name, new_dir->i_ino); in ubifs_jnl_rename() 942 dlen1 = UBIFS_DENT_NODE_SZ + new_dentry->d_name.len + 1; in ubifs_jnl_rename() 969 dent_key_init_flash(c, &dent->key, new_dir->i_ino, &new_dentry->d_name); in ubifs_jnl_rename() 972 dent->nlen = cpu_to_le16(new_dentry->d_name.len); in ubifs_jnl_rename() 973 memcpy(dent->name, new_dentry->d_name.name, new_dentry->d_name.len); in ubifs_jnl_rename() 974 dent->name[new_dentry->d_name.len] = '\0'; in ubifs_jnl_rename() 1028 dent_key_init(c, &key, new_dir->i_ino, &new_dentry->d_name); in ubifs_jnl_rename() [all …]
|
/linux-2.6.39/include/linux/ |
D | fsnotify.h | 167 static inline void fsnotify_link(struct inode *dir, struct inode *inode, struct dentry *new_dentry) in fsnotify_link() argument 170 audit_inode_child(new_dentry, dir); in fsnotify_link() 172 fsnotify(dir, FS_CREATE, inode, FSNOTIFY_EVENT_INODE, new_dentry->d_name.name, 0); in fsnotify_link()
|
/linux-2.6.39/fs/ocfs2/ |
D | namei.c | 1042 struct dentry *new_dentry) in ocfs2_rename() argument 1047 struct inode *new_inode = new_dentry->d_inode; in ocfs2_rename() 1069 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename() 1071 new_dentry->d_name.len, new_dentry->d_name.name); in ocfs2_rename() 1191 status = ocfs2_find_files_on_disk(new_dentry->d_name.name, in ocfs2_rename() 1192 new_dentry->d_name.len, in ocfs2_rename() 1228 trace_ocfs2_rename_target_exists(new_dentry->d_name.len, in ocfs2_rename() 1229 new_dentry->d_name.name); in ocfs2_rename() 1251 status = ocfs2_remote_dentry_delete(new_dentry); in ocfs2_rename() 1273 BUG_ON(new_dentry->d_parent->d_inode != new_dir); in ocfs2_rename() [all …]
|
D | namei.h | 43 struct dentry *new_dentry);
|
/linux-2.6.39/drivers/staging/pohmelfs/ |
D | dir.c | 1007 struct inode *new_dir, struct dentry *new_dentry) in pohmelfs_rename() argument 1011 struct qstr str = new_dentry->d_name; in pohmelfs_rename() 1023 str.hash = jhash(new_dentry->d_name.name, new_dentry->d_name.len, 0); in pohmelfs_rename() 1025 str.len = new_dentry->d_name.len; in pohmelfs_rename() 1026 str.name = new_dentry->d_name.name; in pohmelfs_rename() 1027 str.hash = jhash(new_dentry->d_name.name, new_dentry->d_name.len, 0); in pohmelfs_rename() 1042 new_parent->ino, new_dentry->d_name.name, inode->i_size); in pohmelfs_rename()
|
/linux-2.6.39/fs/omfs/ |
D | dir.c | 374 struct inode *new_dir, struct dentry *new_dentry) in omfs_rename() argument 376 struct inode *new_inode = new_dentry->d_inode; in omfs_rename() 382 err = omfs_remove(new_dir, new_dentry); in omfs_rename() 394 err = omfs_add_link(new_dentry, old_inode); in omfs_rename()
|