tag | line | file | source code |
new_dir | 767 | fs/ext/namei.c | struct inode * new_dir, const char * new_name, int new_len) |
new_dir | 798 | fs/ext/namei.c | new_bh = ext_find_entry(new_dir,new_name,new_len,&new_de,NULL,NULL); |
new_dir | 800 | fs/ext/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode,0); /* don't cross mnt-points */ |
new_dir | 815 | fs/ext/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_dir | 817 | fs/ext/namei.c | current->fsuid != new_dir->i_uid && !fsuser()) |
new_dir | 826 | fs/ext/namei.c | if (subdir(new_dir, old_inode)) |
new_dir | 836 | fs/ext/namei.c | new_bh = ext_add_entry(new_dir,new_name,new_len,&new_de); |
new_dir | 859 | fs/ext/namei.c | PARENT_INO(dir_bh->b_data) = new_dir->i_ino; |
new_dir | 862 | fs/ext/namei.c | new_dir->i_nlink++; |
new_dir | 864 | fs/ext/namei.c | new_dir->i_dirt = 1; |
new_dir | 874 | fs/ext/namei.c | iput(new_dir); |
new_dir | 888 | fs/ext/namei.c | struct inode * new_dir, const char * new_name, int new_len) |
new_dir | 898 | fs/ext/namei.c | new_dir, new_name, new_len); |
new_dir | 930 | fs/ext2/namei.c | int old_len, struct inode * new_dir, |
new_dir | 942 | fs/ext2/namei.c | new_dir->i_version = ++event; |
new_dir | 969 | fs/ext2/namei.c | new_bh = ext2_find_entry (new_dir, new_name, new_len, &new_de); |
new_dir | 971 | fs/ext2/namei.c | new_inode = __iget (new_dir->i_sb, new_de->inode, 0); /* no mntp cross */ |
new_dir | 989 | fs/ext2/namei.c | if (subdir (new_dir, old_inode)) |
new_dir | 999 | fs/ext2/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_dir | 1001 | fs/ext2/namei.c | current->fsuid != new_dir->i_uid && !fsuser()) |
new_dir | 1008 | fs/ext2/namei.c | if (subdir (new_dir, old_inode)) |
new_dir | 1016 | fs/ext2/namei.c | if (!new_inode && new_dir->i_nlink >= EXT2_LINK_MAX) |
new_dir | 1020 | fs/ext2/namei.c | new_bh = ext2_add_entry (new_dir, new_name, new_len, &new_de, |
new_dir | 1024 | fs/ext2/namei.c | new_dir->i_version = ++event; |
new_dir | 1038 | fs/ext2/namei.c | dcache_add(new_dir, new_de->name, new_de->name_len, new_de->inode); |
new_dir | 1053 | fs/ext2/namei.c | PARENT_INO(dir_bh->b_data) = new_dir->i_ino; |
new_dir | 1054 | fs/ext2/namei.c | dcache_add(old_inode, "..", 2, new_dir->i_ino); |
new_dir | 1062 | fs/ext2/namei.c | new_dir->i_nlink++; |
new_dir | 1063 | fs/ext2/namei.c | new_dir->i_dirt = 1; |
new_dir | 1072 | fs/ext2/namei.c | if (IS_SYNC(new_dir)) { |
new_dir | 1084 | fs/ext2/namei.c | iput (new_dir); |
new_dir | 1102 | fs/ext2/namei.c | struct inode * new_dir, const char * new_name, int new_len) |
new_dir | 1109 | fs/ext2/namei.c | result = do_ext2_rename (old_dir, old_name, old_len, new_dir, |
new_dir | 675 | fs/minix/namei.c | struct inode * new_dir, const char * new_name, int new_len) |
new_dir | 708 | fs/minix/namei.c | new_bh = minix_find_entry(new_dir,new_name,new_len,&new_de); |
new_dir | 710 | fs/minix/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode, 0); |
new_dir | 725 | fs/minix/namei.c | if (subdir(new_dir, old_inode)) |
new_dir | 735 | fs/minix/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_dir | 737 | fs/minix/namei.c | current->fsuid != new_dir->i_uid && !fsuser()) |
new_dir | 744 | fs/minix/namei.c | if (subdir(new_dir, old_inode)) |
new_dir | 753 | fs/minix/namei.c | if (!new_inode && new_dir->i_nlink >= MINIX_LINK_MAX) |
new_dir | 757 | fs/minix/namei.c | retval = minix_add_entry(new_dir,new_name,new_len,&new_bh,&new_de); |
new_dir | 774 | fs/minix/namei.c | new_dir->i_ctime = new_dir->i_mtime = CURRENT_TIME; |
new_dir | 775 | fs/minix/namei.c | new_dir->i_dirt = 1; |
new_dir | 776 | fs/minix/namei.c | new_dir->i_version = ++event; |
new_dir | 785 | fs/minix/namei.c | PARENT_INO(dir_bh->b_data) = new_dir->i_ino; |
new_dir | 793 | fs/minix/namei.c | new_dir->i_nlink++; |
new_dir | 794 | fs/minix/namei.c | new_dir->i_dirt = 1; |
new_dir | 805 | fs/minix/namei.c | iput(new_dir); |
new_dir | 819 | fs/minix/namei.c | struct inode * new_dir, const char * new_name, int new_len) |
new_dir | 829 | fs/minix/namei.c | new_dir, new_name, new_len); |
new_dir | 538 | fs/msdos/namei.c | struct inode *new_dir,char *new_name,int new_len, |
new_dir | 549 | fs/msdos/namei.c | exists = fat_scan(new_dir,new_name,&new_bh,&new_de,&new_ino,SCAN_ANY) >= 0; |
new_dir | 555 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
new_dir | 573 | fs/msdos/namei.c | new_dir->i_nlink--; |
new_dir | 574 | fs/msdos/namei.c | new_dir->i_dirt = 1; |
new_dir | 581 | fs/msdos/namei.c | dcache_add(new_dir, new_name, new_len, new_ino); |
new_dir | 603 | fs/msdos/namei.c | struct inode *new_dir,char *new_name,int new_len, |
new_dir | 614 | fs/msdos/namei.c | if (old_dir->i_dev != new_dir->i_dev) return -EINVAL; |
new_dir | 615 | fs/msdos/namei.c | if (old_ino == new_dir->i_ino) return -EINVAL; |
new_dir | 616 | fs/msdos/namei.c | if (!(walk = iget(new_dir->i_sb,new_dir->i_ino))) return -EIO; |
new_dir | 623 | fs/msdos/namei.c | if (!(walk = iget(new_dir->i_sb,ino))) return -EIO; |
new_dir | 627 | fs/msdos/namei.c | while ((error = fat_scan(new_dir,NULL,&free_bh,&free_de,&free_ino, |
new_dir | 630 | fs/msdos/namei.c | error = fat_add_cluster(new_dir); |
new_dir | 633 | fs/msdos/namei.c | exists = fat_scan(new_dir,new_name,&new_bh,&new_de,&new_ino,SCAN_ANY) >= 0; |
new_dir | 647 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
new_dir | 677 | fs/msdos/namei.c | if (!(free_inode = iget(new_dir->i_sb,free_ino))) { |
new_dir | 688 | fs/msdos/namei.c | new_dir->i_nlink--; |
new_dir | 689 | fs/msdos/namei.c | new_dir->i_dirt = 1; |
new_dir | 704 | fs/msdos/namei.c | dcache_add(new_dir, new_name, new_len, new_ino); |
new_dir | 716 | fs/msdos/namei.c | MSDOS_I(new_dir)->i_start; |
new_dir | 720 | fs/msdos/namei.c | new_dir->i_nlink++; |
new_dir | 722 | fs/msdos/namei.c | dotdot_inode->i_nlink = new_dir->i_nlink; |
new_dir | 735 | fs/msdos/namei.c | struct inode *new_dir,const char *new_name,int new_len) |
new_dir | 748 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(new_dir->i_sb)->options.name_check, |
new_dir | 750 | fs/msdos/namei.c | MSDOS_SB(new_dir->i_sb)->options.dotsOK)) |
new_dir | 757 | fs/msdos/namei.c | if (old_dir == new_dir) |
new_dir | 758 | fs/msdos/namei.c | error = rename_same_dir(old_dir,old_msdos_name,old_len,new_dir, |
new_dir | 760 | fs/msdos/namei.c | else error = rename_diff_dir(old_dir,old_msdos_name,old_len,new_dir, |
new_dir | 766 | fs/msdos/namei.c | iput(new_dir); |
new_dir | 803 | fs/namei.c | struct inode * old_dir, * new_dir; |
new_dir | 820 | fs/namei.c | error = dir_namei(newname, &new_len, &new_base, NULL, &new_dir); |
new_dir | 825 | fs/namei.c | if ((error = permission(new_dir,MAY_WRITE | MAY_EXEC)) != 0){ |
new_dir | 827 | fs/namei.c | iput(new_dir); |
new_dir | 834 | fs/namei.c | iput(new_dir); |
new_dir | 837 | fs/namei.c | if (new_dir->i_dev != old_dir->i_dev) { |
new_dir | 839 | fs/namei.c | iput(new_dir); |
new_dir | 842 | fs/namei.c | if (IS_RDONLY(new_dir) || IS_RDONLY(old_dir)) { |
new_dir | 844 | fs/namei.c | iput(new_dir); |
new_dir | 852 | fs/namei.c | iput(new_dir); |
new_dir | 857 | fs/namei.c | iput(new_dir); |
new_dir | 860 | fs/namei.c | new_dir->i_count++; |
new_dir | 861 | fs/namei.c | if (new_dir->i_sb && new_dir->i_sb->dq_op) |
new_dir | 862 | fs/namei.c | new_dir->i_sb->dq_op->initialize(new_dir, -1); |
new_dir | 863 | fs/namei.c | down(&new_dir->i_sem); |
new_dir | 865 | fs/namei.c | new_dir, new_base, new_len); |
new_dir | 866 | fs/namei.c | up(&new_dir->i_sem); |
new_dir | 867 | fs/namei.c | iput(new_dir); |
new_dir | 65 | fs/ncpfs/dir.c | struct inode *new_dir, const char *new_name, int new_len); |
new_dir | 931 | fs/ncpfs/dir.c | struct nw_file_info new_dir; |
new_dir | 961 | fs/ncpfs/dir.c | &new_dir) != 0) |
new_dir | 1064 | fs/ncpfs/dir.c | struct inode *new_dir, const char *new_name, int new_len) |
new_dir | 1083 | fs/ncpfs/dir.c | if (!new_dir || !S_ISDIR(new_dir->i_mode)) |
new_dir | 1091 | fs/ncpfs/dir.c | || (ncp_find_dir_inode(new_dir, new_name) != NULL)) |
new_dir | 1107 | fs/ncpfs/dir.c | NCP_ISTRUCT(new_dir), _new_name); |
new_dir | 1112 | fs/ncpfs/dir.c | ncp_invalid_dir_cache(new_dir); |
new_dir | 1121 | fs/ncpfs/dir.c | iput(new_dir); |
new_dir | 521 | fs/ncpfs/ncplib_kernel.c | struct nw_info_struct *new_dir, char *new_name) |
new_dir | 526 | fs/ncpfs/ncplib_kernel.c | || (new_dir == NULL) || (new_name == NULL)) |
new_dir | 542 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, new_dir->volNumber); |
new_dir | 543 | fs/ncpfs/ncplib_kernel.c | ncp_add_dword(server, new_dir->DosDirNum); |
new_dir | 166 | fs/ncpfs/ncplib_kernel.h | struct nw_info_struct *new_dir, char *new_name); |
new_dir | 40 | fs/nfs/dir.c | int old_len, struct inode *new_dir, const char *new_name, |
new_dir | 613 | fs/nfs/dir.c | struct inode *new_dir, const char *new_name, int new_len) |
new_dir | 620 | fs/nfs/dir.c | iput(new_dir); |
new_dir | 623 | fs/nfs/dir.c | if (!new_dir || !S_ISDIR(new_dir->i_mode)) { |
new_dir | 626 | fs/nfs/dir.c | iput(new_dir); |
new_dir | 631 | fs/nfs/dir.c | iput(new_dir); |
new_dir | 636 | fs/nfs/dir.c | NFS_FH(new_dir), new_name); |
new_dir | 639 | fs/nfs/dir.c | nfs_lookup_cache_remove(new_dir, NULL, new_name); |
new_dir | 642 | fs/nfs/dir.c | iput(new_dir); |
new_dir | 615 | fs/nfs/proc.c | struct nfs_fh *new_dir, const char *new_name) |
new_dir | 628 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, new_dir); |
new_dir | 64 | fs/smbfs/dir.c | struct inode *new_dir, const char *new_name, int new_len); |
new_dir | 885 | fs/smbfs/dir.c | struct inode *new_dir, const char *new_name, int new_len) |
new_dir | 896 | fs/smbfs/dir.c | if (!new_dir || !S_ISDIR(new_dir->i_mode)) { |
new_dir | 907 | fs/smbfs/dir.c | res = get_pname_static(new_dir, new_name, new_len, new_path, &new_len); |
new_dir | 913 | fs/smbfs/dir.c | || (smb_find_inode(SMB_SERVER(new_dir), new_path) != NULL)) { |
new_dir | 932 | fs/smbfs/dir.c | smb_invalid_dir_cache(new_dir->i_ino); |
new_dir | 937 | fs/smbfs/dir.c | iput(new_dir); |
new_dir | 671 | fs/sysv/namei.c | struct inode * new_dir, const char * new_name, int new_len) |
new_dir | 702 | fs/sysv/namei.c | new_bh = sysv_find_entry(new_dir,new_name,new_len,&new_de); |
new_dir | 704 | fs/sysv/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode, 0); |
new_dir | 719 | fs/sysv/namei.c | if (subdir(new_dir, old_inode)) |
new_dir | 729 | fs/sysv/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_dir | 731 | fs/sysv/namei.c | current->fsuid != new_dir->i_uid && !fsuser()) |
new_dir | 738 | fs/sysv/namei.c | if (subdir(new_dir, old_inode)) |
new_dir | 747 | fs/sysv/namei.c | if (!new_inode && new_dir->i_nlink >= new_dir->i_sb->sv_link_max) |
new_dir | 751 | fs/sysv/namei.c | retval = sysv_add_entry(new_dir,new_name,new_len,&new_bh,&new_de); |
new_dir | 767 | fs/sysv/namei.c | new_dir->i_ctime = new_dir->i_mtime = CURRENT_TIME; |
new_dir | 768 | fs/sysv/namei.c | new_dir->i_dirt = 1; |
new_dir | 777 | fs/sysv/namei.c | PARENT_INO(dir_bh->b_data) = new_dir->i_ino; |
new_dir | 785 | fs/sysv/namei.c | new_dir->i_nlink++; |
new_dir | 786 | fs/sysv/namei.c | new_dir->i_dirt = 1; |
new_dir | 797 | fs/sysv/namei.c | iput(new_dir); |
new_dir | 811 | fs/sysv/namei.c | struct inode * new_dir, const char * new_name, int new_len) |
new_dir | 821 | fs/sysv/namei.c | new_dir, new_name, new_len); |
new_dir | 312 | fs/umsdos/namei.c | struct inode * new_dir, |
new_dir | 326 | fs/umsdos/namei.c | umsdos_lockcreate2(old_dir,new_dir); |
new_dir | 339 | fs/umsdos/namei.c | ret = umsdos_findentry(new_dir,&new_info,0); |
new_dir | 341 | fs/umsdos/namei.c | !(new_dir->i_mode & S_ISVTX) || fsuser() || |
new_dir | 343 | fs/umsdos/namei.c | current->fsuid == new_dir->i_uid ) { |
new_dir | 346 | fs/umsdos/namei.c | ret = umsdos_newentry (new_dir,&new_info); |
new_dir | 352 | fs/umsdos/namei.c | new_dir->i_count++; /* Both inode are needed later */ |
new_dir | 355 | fs/umsdos/namei.c | ,new_dir |
new_dir | 360 | fs/umsdos/namei.c | umsdos_delentry (new_dir,&new_info |
new_dir | 377 | fs/umsdos/namei.c | new_dir->i_count++; |
new_dir | 379 | fs/umsdos/namei.c | ret = UMSDOS_lookup (new_dir,new_name,new_len |
new_dir | 390 | fs/umsdos/namei.c | umsdos_set_dirinfo (inode,new_dir,new_info.f_pos); |
new_dir | 409 | fs/umsdos/namei.c | umsdos_unlockcreate(new_dir); |
new_dir | 412 | fs/umsdos/namei.c | iput (new_dir); |
new_dir | 1015 | fs/umsdos/namei.c | struct inode * new_dir, |
new_dir | 1031 | fs/umsdos/namei.c | int ret = umsdos_nevercreat(new_dir,new_name,new_len,-EEXIST); |
new_dir | 1035 | fs/umsdos/namei.c | new_dir->i_count++; |
new_dir | 1036 | fs/umsdos/namei.c | ret = umsdos_rename_f (old_dir,old_name,old_len,new_dir,new_name |
new_dir | 1073 | fs/umsdos/namei.c | new_dir->i_count++; |
new_dir | 1074 | fs/umsdos/namei.c | ret = UMSDOS_unlink (new_dir,new_name,new_len); |
new_dir | 1078 | fs/umsdos/namei.c | new_dir->i_count++; |
new_dir | 1079 | fs/umsdos/namei.c | ret = UMSDOS_rmdir (new_dir,new_name,new_len); |
new_dir | 1085 | fs/umsdos/namei.c | ,new_dir,new_name,new_len,0); |
new_dir | 1086 | fs/umsdos/namei.c | new_dir = old_dir = NULL; |
new_dir | 1090 | fs/umsdos/namei.c | iput (new_dir); |
new_dir | 1353 | fs/vfat/namei.c | struct inode *new_dir,const char *new_name,int new_len) |
new_dir | 1366 | fs/vfat/namei.c | if (old_dir == new_dir && old_len == new_len && |
new_dir | 1387 | fs/vfat/namei.c | if ((old_dir->i_dev != new_dir->i_dev) || |
new_dir | 1388 | fs/vfat/namei.c | (old_ino == new_dir->i_ino)) { |
new_dir | 1392 | fs/vfat/namei.c | if (!(walk = iget(new_dir->i_sb,new_dir->i_ino))) return -EIO; |
new_dir | 1405 | fs/vfat/namei.c | if (!(walk = iget(new_dir->i_sb,ino))) { |
new_dir | 1413 | fs/vfat/namei.c | res = vfat_find(new_dir,new_name,new_len,1,0,is_dir,&sinfo); |
new_dir | 1422 | fs/vfat/namei.c | res = fat_get_entry(new_dir, &new_offset, &new_bh, &new_de); |
new_dir | 1426 | fs/vfat/namei.c | if (!(new_inode = iget(new_dir->i_sb,res))) |
new_dir | 1432 | fs/vfat/namei.c | res = vfat_rmdirx(new_dir,new_name,new_len); |
new_dir | 1437 | fs/vfat/namei.c | res = vfat_unlinkx(new_dir,new_name,new_len,1); |
new_dir | 1445 | fs/vfat/namei.c | res = vfat_find(new_dir,new_name,new_len,1,1,is_dir,&sinfo); |
new_dir | 1452 | fs/vfat/namei.c | res = fat_get_entry(new_dir, &new_offset, &new_bh, &new_de); |
new_dir | 1465 | fs/vfat/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) goto rename_done; |
new_dir | 1495 | fs/vfat/namei.c | dcache_add(new_dir, new_name, new_len, new_ino); |
new_dir | 1512 | fs/vfat/namei.c | MSDOS_I(new_dir)->i_start; |
new_dir | 1516 | fs/vfat/namei.c | new_dir->i_nlink++; |
new_dir | 1518 | fs/vfat/namei.c | dotdot_inode->i_nlink = new_dir->i_nlink; |
new_dir | 1531 | fs/vfat/namei.c | iput(new_dir); |
new_dir | 715 | fs/xiafs/namei.c | int old_len, struct inode * new_dir, |
new_dir | 738 | fs/xiafs/namei.c | new_bh = xiafs_find_entry(new_dir, new_name, new_len, &new_de, NULL); |
new_dir | 740 | fs/xiafs/namei.c | new_inode = __iget(new_dir->i_sb, new_de->d_ino, 0); |
new_dir | 755 | fs/xiafs/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_dir | 757 | fs/xiafs/namei.c | current->fsuid != new_dir->i_uid && !fsuser()) |
new_dir | 766 | fs/xiafs/namei.c | if (subdir(new_dir, old_inode)) |
new_dir | 775 | fs/xiafs/namei.c | if (new_dir->i_nlink > 64000) |
new_dir | 779 | fs/xiafs/namei.c | new_bh = xiafs_add_entry(new_dir, new_name, new_len, &new_de, &new_de_pre); |
new_dir | 806 | fs/xiafs/namei.c | PARENT_INO(dir_bh->b_data) = new_dir->i_ino; |
new_dir | 809 | fs/xiafs/namei.c | new_dir->i_nlink++; |
new_dir | 811 | fs/xiafs/namei.c | new_dir->i_dirt = 1; |
new_dir | 821 | fs/xiafs/namei.c | iput(new_dir); |
new_dir | 835 | fs/xiafs/namei.c | struct inode * new_dir, const char * new_name, int new_len) |
new_dir | 845 | fs/xiafs/namei.c | new_dir, new_name, new_len); |
new_dir | 77 | include/linux/ext_fs.h | struct inode * new_dir, const char * new_name, int new_len); |
new_dir | 103 | include/linux/minix_fs.h | struct inode * new_dir, const char * new_name, int new_len); |
new_dir | 254 | include/linux/msdos_fs.h | struct inode *new_dir,const char *new_name,int new_len); |
new_dir | 82 | include/linux/nfs_fs.h | struct nfs_fh *new_dir, const char *new_name); |
new_dir | 376 | include/linux/sysv_fs.h | struct inode * new_dir, const char * new_name, int new_len); |
new_dir | 81 | include/linux/xia_fs.h | int old_len, struct inode * new_dir, |