Home
last modified time | relevance | path

Searched refs:old_dentry (Results 1 – 25 of 60) sorted by relevance

123

/linux-2.6.39/fs/debugfs/
Dinode.c471 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, in debugfs_rename() argument
483 if (!old_dentry->d_inode || old_dentry == trap || in debugfs_rename()
484 d_mountpoint(old_dentry)) in debugfs_rename()
491 old_name = fsnotify_oldname_init(old_dentry->d_name.name); in debugfs_rename()
493 error = simple_rename(old_dir->d_inode, old_dentry, new_dir->d_inode, in debugfs_rename()
499 d_move(old_dentry, dentry); in debugfs_rename()
501 S_ISDIR(old_dentry->d_inode->i_mode), in debugfs_rename()
502 NULL, old_dentry); in debugfs_rename()
506 return old_dentry; in debugfs_rename()
/linux-2.6.39/fs/jffs2/
Ddir.c262 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) in jffs2_link() argument
264 struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dentry->d_inode->i_sb); in jffs2_link()
265 struct jffs2_inode_info *f = JFFS2_INODE_INFO(old_dentry->d_inode); in jffs2_link()
275 if (S_ISDIR(old_dentry->d_inode->i_mode)) in jffs2_link()
279 type = (old_dentry->d_inode->i_mode & S_IFMT) >> 12; in jffs2_link()
287 old_dentry->d_inode->i_nlink = ++f->inocache->pino_nlink; in jffs2_link()
289 d_instantiate(dentry, old_dentry->d_inode); in jffs2_link()
291 ihold(old_dentry->d_inode); in jffs2_link()
778 static int jffs2_rename (struct inode *old_dir_i, struct dentry *old_dentry, in jffs2_rename() argument
816 type = (old_dentry->d_inode->i_mode & S_IFMT) >> 12; in jffs2_rename()
[all …]
/linux-2.6.39/fs/nfs/
Dunlink.c350 struct dentry *old_dentry; member
376 nfs_cancel_async_unlink(data->old_dentry); in nfs_async_rename_done()
380 nfs_set_verifier(data->old_dentry, nfs_save_change_attribute(old_dir)); in nfs_async_rename_done()
381 d_move(data->old_dentry, data->new_dentry); in nfs_async_rename_done()
393 if (data->old_dentry->d_inode) in nfs_async_rename_release()
394 nfs_mark_for_revalidate(data->old_dentry->d_inode); in nfs_async_rename_release()
396 dput(data->old_dentry); in nfs_async_rename_release()
437 struct dentry *old_dentry, struct dentry *new_dentry) in nfs_async_rename() argument
470 data->old_dentry = dget(old_dentry); in nfs_async_rename()
477 data->args.old_name = &old_dentry->d_name; in nfs_async_rename()
/linux-2.6.39/fs/minix/
Dnamei.c92 static int minix_link(struct dentry * old_dentry, struct inode * dir, in minix_link() argument
95 struct inode *inode = old_dentry->d_inode; in minix_link()
181 static int minix_rename(struct inode * old_dir, struct dentry *old_dentry, in minix_rename() argument
185 struct inode * old_inode = old_dentry->d_inode; in minix_rename()
193 old_de = minix_find_entry(old_dentry, &old_page); in minix_rename()
/linux-2.6.39/fs/sysv/
Dnamei.c119 static int sysv_link(struct dentry * old_dentry, struct inode * dir, in sysv_link() argument
122 struct inode *inode = old_dentry->d_inode; in sysv_link()
214 static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry, in sysv_rename() argument
217 struct inode * old_inode = old_dentry->d_inode; in sysv_rename()
225 old_de = sysv_find_entry(old_dentry, &old_page); in sysv_rename()
/linux-2.6.39/fs/logfs/
Ddir.c565 static int logfs_link(struct dentry *old_dentry, struct inode *dir, in logfs_link() argument
568 struct inode *inode = old_dentry->d_inode; in logfs_link()
616 static int logfs_rename_cross(struct inode *old_dir, struct dentry *old_dentry, in logfs_rename_cross() argument
626 err = logfs_get_dd(old_dir, old_dentry, &dd, &pos); in logfs_rename_cross()
641 err = logfs_write_dir(new_dir, new_dentry, old_dentry->d_inode); in logfs_rename_cross()
688 static int logfs_rename_target(struct inode *old_dir, struct dentry *old_dentry, in logfs_rename_target() argument
692 struct inode *old_inode = old_dentry->d_inode; in logfs_rename_target()
707 err = logfs_get_dd(old_dir, old_dentry, &dd, &pos); in logfs_rename_target()
750 static int logfs_rename(struct inode *old_dir, struct dentry *old_dentry, in logfs_rename() argument
754 return logfs_rename_target(old_dir, old_dentry, in logfs_rename()
[all …]
/linux-2.6.39/fs/exofs/
Dnamei.c146 static int exofs_link(struct dentry *old_dentry, struct inode *dir, in exofs_link() argument
149 struct inode *inode = old_dentry->d_inode; in exofs_link()
241 static int exofs_rename(struct inode *old_dir, struct dentry *old_dentry, in exofs_rename() argument
244 struct inode *old_inode = old_dentry->d_inode; in exofs_rename()
252 old_de = exofs_find_entry(old_dir, old_dentry, &old_page); in exofs_rename()
/linux-2.6.39/fs/ufs/
Dnamei.c168 static int ufs_link (struct dentry * old_dentry, struct inode * dir, in ufs_link() argument
171 struct inode *inode = old_dentry->d_inode; in ufs_link()
274 static int ufs_rename(struct inode *old_dir, struct dentry *old_dentry, in ufs_rename() argument
277 struct inode *old_inode = old_dentry->d_inode; in ufs_rename()
285 old_de = ufs_find_entry(old_dir, &old_dentry->d_name, &old_page); in ufs_rename()
/linux-2.6.39/security/tomoyo/
Dtomoyo.c158 static int tomoyo_path_link(struct dentry *old_dentry, struct path *new_dir, in tomoyo_path_link() argument
161 struct path path1 = { new_dir->mnt, old_dentry }; in tomoyo_path_link()
167 struct dentry *old_dentry, in tomoyo_path_rename() argument
171 struct path path1 = { old_parent->mnt, old_dentry }; in tomoyo_path_rename()
/linux-2.6.39/fs/ext2/
Dnamei.c196 static int ext2_link (struct dentry * old_dentry, struct inode * dir, in ext2_link() argument
199 struct inode *inode = old_dentry->d_inode; in ext2_link()
310 static int ext2_rename (struct inode * old_dir, struct dentry * old_dentry, in ext2_rename() argument
313 struct inode * old_inode = old_dentry->d_inode; in ext2_rename()
324 old_de = ext2_find_entry (old_dir, &old_dentry->d_name, &old_page); in ext2_rename()
/linux-2.6.39/fs/
Dnamei.c2918 int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry) in vfs_link() argument
2920 struct inode *inode = old_dentry->d_inode; 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()
3067 static int vfs_rename_dir(struct inode *old_dir, struct dentry *old_dentry, in vfs_rename_dir() argument
3078 error = inode_permission(old_dentry->d_inode, MAY_WRITE); in vfs_rename_dir()
3083 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry); in vfs_rename_dir()
3090 if (d_mountpoint(old_dentry)||d_mountpoint(new_dentry)) in vfs_rename_dir()
3095 error = old_dir->i_op->rename(old_dir, old_dentry, new_dir, new_dentry); in vfs_rename_dir()
3109 d_move(old_dentry,new_dentry); in vfs_rename_dir()
[all …]
/linux-2.6.39/fs/affs/
Dnamei.c402 affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in affs_link() argument
404 struct inode *inode = old_dentry->d_inode; in affs_link()
413 affs_rename(struct inode *old_dir, struct dentry *old_dentry, in affs_rename() argument
421 (u32)old_dir->i_ino, (int)old_dentry->d_name.len, old_dentry->d_name.name, in affs_rename()
435 bh = affs_bread(sb, old_dentry->d_inode->i_ino); in affs_rename()
/linux-2.6.39/fs/hfs/
Ddir.c279 static int hfs_rename(struct inode *old_dir, struct dentry *old_dentry, in hfs_rename() argument
291 res = hfs_cat_move(old_dentry->d_inode->i_ino, in hfs_rename()
292 old_dir, &old_dentry->d_name, in hfs_rename()
296 (btree_key *)&HFS_I(old_dentry->d_inode)->cat_key, in hfs_rename()
/linux-2.6.39/security/apparmor/
Dlsm.c302 static int apparmor_path_link(struct dentry *old_dentry, struct path *new_dir, in apparmor_path_link() argument
308 if (!mediated_filesystem(old_dentry->d_inode)) in apparmor_path_link()
313 error = aa_path_link(profile, old_dentry, new_dir, new_dentry); in apparmor_path_link()
317 static int apparmor_path_rename(struct path *old_dir, struct dentry *old_dentry, in apparmor_path_rename() argument
323 if (!mediated_filesystem(old_dentry->d_inode)) in apparmor_path_rename()
328 struct path old_path = { old_dir->mnt, old_dentry }; in apparmor_path_rename()
330 struct path_cond cond = { old_dentry->d_inode->i_uid, in apparmor_path_rename()
331 old_dentry->d_inode->i_mode in apparmor_path_rename()
Dfile.c349 int aa_path_link(struct aa_profile *profile, struct dentry *old_dentry, in aa_path_link() argument
353 struct path target = { new_dir->mnt, old_dentry }; in aa_path_link()
355 old_dentry->d_inode->i_uid, in aa_path_link()
356 old_dentry->d_inode->i_mode in aa_path_link()
/linux-2.6.39/security/
Dsecurity.c393 int security_path_link(struct dentry *old_dentry, struct path *new_dir, in security_path_link() argument
396 if (unlikely(IS_PRIVATE(old_dentry->d_inode))) in security_path_link()
398 return security_ops->path_link(old_dentry, new_dir, new_dentry); in security_path_link()
401 int security_path_rename(struct path *old_dir, struct dentry *old_dentry, in security_path_rename() argument
404 if (unlikely(IS_PRIVATE(old_dentry->d_inode) || in security_path_rename()
407 return security_ops->path_rename(old_dir, old_dentry, new_dir, in security_path_rename()
448 int security_inode_link(struct dentry *old_dentry, struct inode *dir, in security_inode_link() argument
451 if (unlikely(IS_PRIVATE(old_dentry->d_inode))) in security_inode_link()
453 return security_ops->inode_link(old_dentry, dir, new_dentry); in security_inode_link()
493 int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, in security_inode_rename() argument
[all …]
/linux-2.6.39/fs/9p/
Dvfs_inode.c830 v9fs_vfs_rename(struct inode *old_dir, struct dentry *old_dentry, in v9fs_vfs_rename() argument
844 old_inode = old_dentry->d_inode; in v9fs_vfs_rename()
847 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_rename()
851 olddirfid = v9fs_fid_clone(old_dentry->d_parent); in v9fs_vfs_rename()
870 if (old_dentry->d_parent != new_dentry->d_parent) { in v9fs_vfs_rename()
908 d_move(old_dentry, new_dentry); in v9fs_vfs_rename()
1282 v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link() argument
1291 old_dentry->d_name.name); in v9fs_vfs_link()
1293 oldfid = v9fs_fid_clone(old_dentry); in v9fs_vfs_link()
1307 v9fs_refresh_inode(oldfid, old_dentry->d_inode); in v9fs_vfs_link()
Dvfs_inode_dotl.c643 v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link_dotl() argument
653 dir->i_ino, old_dentry->d_name.name, in v9fs_vfs_link_dotl()
662 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
679 fid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
683 v9fs_refresh_inode_dotl(fid, old_dentry->d_inode); in v9fs_vfs_link_dotl()
685 ihold(old_dentry->d_inode); in v9fs_vfs_link_dotl()
686 d_instantiate(dentry, old_dentry->d_inode); in v9fs_vfs_link_dotl()
/linux-2.6.39/fs/ubifs/
Djournal.c918 const struct dentry *old_dentry, in ubifs_jnl_rename() argument
926 const struct inode *old_inode = old_dentry->d_inode; in ubifs_jnl_rename()
934 old_dentry->d_name.len, old_dentry->d_name.name, in ubifs_jnl_rename()
943 dlen2 = UBIFS_DENT_NODE_SZ + old_dentry->d_name.len + 1; in ubifs_jnl_rename()
982 &old_dentry->d_name); in ubifs_jnl_rename()
985 dent2->nlen = cpu_to_le16(old_dentry->d_name.len); in ubifs_jnl_rename()
986 memcpy(dent2->name, old_dentry->d_name.name, old_dentry->d_name.len); in ubifs_jnl_rename()
987 dent2->name[old_dentry->d_name.len] = '\0'; in ubifs_jnl_rename()
1037 dent_key_init(c, &key, old_dir->i_ino, &old_dentry->d_name); in ubifs_jnl_rename()
1038 err = ubifs_tnc_remove_nm(c, &key, &old_dentry->d_name); in ubifs_jnl_rename()
/linux-2.6.39/fs/nilfs2/
Dnamei.c194 static int nilfs_link(struct dentry *old_dentry, struct inode *dir, in nilfs_link() argument
197 struct inode *inode = old_dentry->d_inode; in nilfs_link()
360 static int nilfs_rename(struct inode *old_dir, struct dentry *old_dentry, in nilfs_rename() argument
363 struct inode *old_inode = old_dentry->d_inode; in nilfs_rename()
377 old_de = nilfs_find_entry(old_dir, &old_dentry->d_name, &old_page); in nilfs_rename()
/linux-2.6.39/fs/ncpfs/
Ddir.c234 ncp_force_rename(struct inode *old_dir, struct dentry* old_dentry, char *_old_name, in ncp_force_rename() argument
239 struct inode *old_inode = old_dentry->d_inode; in ncp_force_rename()
1130 static int ncp_rename(struct inode *old_dir, struct dentry *old_dentry, in ncp_rename() argument
1139 old_dentry->d_parent->d_name.name, old_dentry->d_name.name, in ncp_rename()
1142 ncp_age_dentry(server, old_dentry); in ncp_rename()
1147 old_dentry->d_name.name, old_dentry->d_name.len, in ncp_rename()
1164 error = ncp_force_rename(old_dir, old_dentry, __old_name, in ncp_rename()
1171 old_dentry->d_name.name,new_dentry->d_name.name); in ncp_rename()
/linux-2.6.39/fs/fat/
Dnamei_msdos.c444 struct dentry *old_dentry, in do_msdos_rename() argument
457 old_inode = old_dentry->d_inode; in do_msdos_rename()
617 static int msdos_rename(struct inode *old_dir, struct dentry *old_dentry, in msdos_rename() argument
626 err = msdos_format_name(old_dentry->d_name.name, in msdos_rename()
627 old_dentry->d_name.len, old_msdos_name, in msdos_rename()
640 err = do_msdos_rename(old_dir, old_msdos_name, old_dentry, in msdos_rename()
/linux-2.6.39/fs/bfs/
Ddir.c218 static int bfs_rename(struct inode *old_dir, struct dentry *old_dentry, in bfs_rename() argument
228 old_inode = old_dentry->d_inode; in bfs_rename()
236 old_dentry->d_name.name, in bfs_rename()
237 old_dentry->d_name.len, &old_de); in bfs_rename()
/linux-2.6.39/fs/coda/
Ddir.c35 static int coda_link(struct dentry *old_dentry, struct inode *dir_inode,
42 static int coda_rename(struct inode *old_inode, struct dentry *old_dentry,
353 static int coda_rename(struct inode *old_dir, struct dentry *old_dentry, in coda_rename() argument
356 const char *old_name = old_dentry->d_name.name; in coda_rename()
358 int old_length = old_dentry->d_name.len; in coda_rename()
/linux-2.6.39/include/linux/
Ddebugfs.h49 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry,
115 static inline struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, in debugfs_rename() argument

123