Fork me on GitHub
dir_new           164 fs/ext2/namei.c static int is_subdir(struct inode *dir_new, struct inode *i_old)
dir_new           170 fs/ext2/namei.c 	dir_new->count++;
dir_new           172 fs/ext2/namei.c 		if(dir_new == i_old) {
dir_new           176 fs/ext2/namei.c 		inode = dir_new->inode;
dir_new           177 fs/ext2/namei.c 		if(ext2_lookup("..", dir_new, &dir_new)) {
dir_new           180 fs/ext2/namei.c 		if(dir_new->inode == inode) {
dir_new           184 fs/ext2/namei.c 	iput(dir_new);
dir_new           289 fs/ext2/namei.c int ext2_link(struct inode *i_old, struct inode *dir_new, char *name)
dir_new           297 fs/ext2/namei.c 	inode_lock(dir_new);
dir_new           299 fs/ext2/namei.c 	if(!(buf = add_dir_entry(dir_new, &d, name))) {
dir_new           301 fs/ext2/namei.c 		inode_unlock(dir_new);
dir_new           319 fs/ext2/namei.c 	dir_new->i_mtime = CURRENT_TIME;
dir_new           320 fs/ext2/namei.c 	dir_new->i_ctime = CURRENT_TIME;
dir_new           323 fs/ext2/namei.c 	dir_new->dirty = 1;
dir_new           328 fs/ext2/namei.c 	inode_unlock(dir_new);
dir_new           689 fs/ext2/namei.c int ext2_rename(struct inode *i_old, struct inode *dir_old, struct inode *i_new, struct inode *dir_new, char *oldpath, char *newpath)
dir_new           698 fs/ext2/namei.c 	if(is_subdir(dir_new, i_old)) {
dir_new           704 fs/ext2/namei.c 	if(dir_old != dir_new) {
dir_new           705 fs/ext2/namei.c 		inode_lock(dir_new);
dir_new           712 fs/ext2/namei.c 	if(dir_old == dir_new) {
dir_new           728 fs/ext2/namei.c 		if(!(buf_new = find_dir_entry(dir_new, i_new, &d_new, newpath))) {
dir_new           736 fs/ext2/namei.c 		if(!(buf_new = add_dir_entry(dir_new, &d_new, newpath))) {
dir_new           745 fs/ext2/namei.c 			dir_new->i_nlink++;
dir_new           764 fs/ext2/namei.c 	dir_new->i_mtime = CURRENT_TIME;
dir_new           765 fs/ext2/namei.c 	dir_new->i_ctime = CURRENT_TIME;
dir_new           767 fs/ext2/namei.c 	dir_new->dirty = 1;
dir_new           788 fs/ext2/namei.c 			d_new->inode = dir_new->inode;
dir_new           796 fs/ext2/namei.c 	inode_unlock(dir_new);
dir_new           136 fs/minix/namei.c static int is_subdir(struct inode *dir_new, struct inode *i_old)
dir_new           142 fs/minix/namei.c 	dir_new->count++;
dir_new           144 fs/minix/namei.c 		if(dir_new == i_old) {
dir_new           148 fs/minix/namei.c 		inode = dir_new->inode;
dir_new           149 fs/minix/namei.c 		if(minix_lookup("..", dir_new, &dir_new)) {
dir_new           152 fs/minix/namei.c 		if(dir_new->inode == inode) {
dir_new           156 fs/minix/namei.c 	iput(dir_new);
dir_new           251 fs/minix/namei.c int minix_link(struct inode *i_old, struct inode *dir_new, char *name)
dir_new           258 fs/minix/namei.c 	inode_lock(dir_new);
dir_new           260 fs/minix/namei.c 	if(!(buf = add_dir_entry(dir_new, &d))) {
dir_new           262 fs/minix/namei.c 		inode_unlock(dir_new);
dir_new           279 fs/minix/namei.c 	dir_new->i_mtime = CURRENT_TIME;
dir_new           280 fs/minix/namei.c 	dir_new->i_ctime = CURRENT_TIME;
dir_new           283 fs/minix/namei.c 	dir_new->dirty = 1;
dir_new           288 fs/minix/namei.c 	inode_unlock(dir_new);
dir_new           624 fs/minix/namei.c int minix_rename(struct inode *i_old, struct inode *dir_old, struct inode *i_new, struct inode *dir_new, char *oldpath, char *newpath)
dir_new           632 fs/minix/namei.c 	if(is_subdir(dir_new, i_old)) {
dir_new           638 fs/minix/namei.c 	if(dir_old != dir_new) {
dir_new           639 fs/minix/namei.c 		inode_lock(dir_new);
dir_new           646 fs/minix/namei.c 	if(dir_old == dir_new) {
dir_new           662 fs/minix/namei.c 		if(!(buf_new = find_dir_entry(dir_new, i_new, &d_new, newpath))) {
dir_new           670 fs/minix/namei.c 		if(!(buf_new = add_dir_entry(dir_new, &d_new))) {
dir_new           679 fs/minix/namei.c 			dir_new->i_nlink++;
dir_new           690 fs/minix/namei.c 	dir_new->i_mtime = CURRENT_TIME;
dir_new           691 fs/minix/namei.c 	dir_new->i_ctime = CURRENT_TIME;
dir_new           693 fs/minix/namei.c 	dir_new->dirty = 1;
dir_new           714 fs/minix/namei.c 			d_new->inode = dir_new->inode;
dir_new           722 fs/minix/namei.c 	inode_unlock(dir_new);
dir_new            20 kernel/syscalls/link.c 	struct inode *i, *dir, *i_new, *dir_new;
dir_new            67 kernel/syscalls/link.c 	if((errno = namei(tmp_newname, &i_new, &dir_new, !FOLLOW_LINKS))) {
dir_new            68 kernel/syscalls/link.c 		if(!dir_new) {
dir_new            80 kernel/syscalls/link.c 		iput(dir_new);
dir_new            85 kernel/syscalls/link.c 	if(i->dev != dir_new->dev) {
dir_new            88 kernel/syscalls/link.c 		iput(dir_new);
dir_new            93 kernel/syscalls/link.c 	if(check_permission(TO_EXEC | TO_WRITE, dir_new) < 0) {
dir_new            96 kernel/syscalls/link.c 		iput(dir_new);
dir_new           102 kernel/syscalls/link.c 	if(dir_new->fsop && dir_new->fsop->link) {
dir_new           103 kernel/syscalls/link.c 		errno = dir_new->fsop->link(i, dir_new, basename);
dir_new           109 kernel/syscalls/link.c 	iput(dir_new);
dir_new            20 kernel/syscalls/rename.c 	struct inode *i, *dir, *i_new, *dir_new;
dir_new            53 kernel/syscalls/rename.c 	if((errno = namei(newbasename, &i_new, &dir_new, !FOLLOW_LINKS))) {
dir_new            54 kernel/syscalls/rename.c 		if(!dir_new) {
dir_new            62 kernel/syscalls/rename.c 	if(dir->dev != dir_new->dev) {
dir_new            98 kernel/syscalls/rename.c 	if(check_permission(TO_EXEC | TO_WRITE, dir_new) < 0) {
dir_new           103 kernel/syscalls/rename.c 	if(dir_new->fsop && dir_new->fsop->rename) {
dir_new           104 kernel/syscalls/rename.c 		errno = dir_new->fsop->rename(i, dir, i_new, dir_new, oldbasename, newbasename);
dir_new           113 kernel/syscalls/rename.c 	iput(dir_new);