tag | line | file | source code |
new_inode | 724 | fs/ext/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 729 | fs/ext/namei.c | new_inode->i_count++; |
new_inode | 732 | fs/ext/namei.c | if (new_inode == old_inode) { |
new_inode | 736 | fs/ext/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 738 | fs/ext/namei.c | ino = new_inode->i_ino; |
new_inode | 739 | fs/ext/namei.c | if (ext_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 741 | fs/ext/namei.c | if (new_inode->i_ino == ino) |
new_inode | 744 | fs/ext/namei.c | iput(new_inode); |
new_inode | 769 | fs/ext/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 780 | fs/ext/namei.c | iput(new_inode); |
new_inode | 784 | fs/ext/namei.c | old_inode = new_inode = NULL; |
new_inode | 800 | fs/ext/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode,0); /* don't cross mnt-points */ |
new_inode | 801 | fs/ext/namei.c | if (!new_inode) { |
new_inode | 806 | fs/ext/namei.c | if (new_inode == old_inode) { |
new_inode | 810 | fs/ext/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 815 | fs/ext/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 816 | fs/ext/namei.c | current->fsuid != new_inode->i_uid && |
new_inode | 841 | fs/ext/namei.c | if (new_inode && (new_de->inode != new_inode->i_ino)) |
new_inode | 843 | fs/ext/namei.c | if (new_de->inode && !new_inode) |
new_inode | 852 | fs/ext/namei.c | if (new_inode) { |
new_inode | 853 | fs/ext/namei.c | new_inode->i_nlink--; |
new_inode | 854 | fs/ext/namei.c | new_inode->i_dirt = 1; |
new_inode | 872 | fs/ext/namei.c | iput(new_inode); |
new_inode | 886 | fs/ext2/namei.c | static int subdir (struct inode * new_inode, struct inode * old_inode) |
new_inode | 891 | fs/ext2/namei.c | new_inode->i_count++; |
new_inode | 894 | fs/ext2/namei.c | if (new_inode == old_inode) { |
new_inode | 898 | fs/ext2/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 900 | fs/ext2/namei.c | ino = new_inode->i_ino; |
new_inode | 901 | fs/ext2/namei.c | if (ext2_lookup (new_inode, "..", 2, &new_inode)) |
new_inode | 903 | fs/ext2/namei.c | if (new_inode->i_ino == ino) |
new_inode | 906 | fs/ext2/namei.c | iput (new_inode); |
new_inode | 933 | fs/ext2/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 948 | fs/ext2/namei.c | iput (new_inode); |
new_inode | 952 | fs/ext2/namei.c | old_inode = new_inode = NULL; |
new_inode | 971 | fs/ext2/namei.c | new_inode = __iget (new_dir->i_sb, new_de->inode, 0); /* no mntp cross */ |
new_inode | 972 | fs/ext2/namei.c | if (!new_inode) { |
new_inode | 976 | fs/ext2/namei.c | if (new_inode->i_sb->dq_op) |
new_inode | 977 | fs/ext2/namei.c | new_inode->i_sb->dq_op->initialize (new_inode, -1); |
new_inode | 980 | fs/ext2/namei.c | if (new_inode == old_inode) { |
new_inode | 984 | fs/ext2/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 992 | fs/ext2/namei.c | if (!empty_dir (new_inode)) |
new_inode | 995 | fs/ext2/namei.c | if (new_inode->i_count > 1) |
new_inode | 999 | fs/ext2/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 1000 | fs/ext2/namei.c | current->fsuid != new_inode->i_uid && |
new_inode | 1005 | fs/ext2/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
new_inode | 1016 | fs/ext2/namei.c | if (!new_inode && new_dir->i_nlink >= EXT2_LINK_MAX) |
new_inode | 1028 | fs/ext2/namei.c | if (new_inode && (new_de->inode != new_inode->i_ino)) |
new_inode | 1030 | fs/ext2/namei.c | if (new_de->inode && !new_inode) |
new_inode | 1045 | fs/ext2/namei.c | if (new_inode) { |
new_inode | 1046 | fs/ext2/namei.c | new_inode->i_nlink--; |
new_inode | 1047 | fs/ext2/namei.c | new_inode->i_ctime = CURRENT_TIME; |
new_inode | 1048 | fs/ext2/namei.c | new_inode->i_dirt = 1; |
new_inode | 1058 | fs/ext2/namei.c | if (new_inode) { |
new_inode | 1059 | fs/ext2/namei.c | new_inode->i_nlink--; |
new_inode | 1060 | fs/ext2/namei.c | new_inode->i_dirt = 1; |
new_inode | 1082 | fs/ext2/namei.c | iput (new_inode); |
new_inode | 637 | fs/minix/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 642 | fs/minix/namei.c | new_inode->i_count++; |
new_inode | 645 | fs/minix/namei.c | if (new_inode == old_inode) { |
new_inode | 649 | fs/minix/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 651 | fs/minix/namei.c | ino = new_inode->i_ino; |
new_inode | 652 | fs/minix/namei.c | if (minix_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 654 | fs/minix/namei.c | if (new_inode->i_ino == ino) |
new_inode | 657 | fs/minix/namei.c | iput(new_inode); |
new_inode | 677 | fs/minix/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 690 | fs/minix/namei.c | iput(new_inode); |
new_inode | 694 | fs/minix/namei.c | old_inode = new_inode = NULL; |
new_inode | 710 | fs/minix/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode, 0); |
new_inode | 711 | fs/minix/namei.c | if (!new_inode) { |
new_inode | 716 | fs/minix/namei.c | if (new_inode == old_inode) { |
new_inode | 720 | fs/minix/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 728 | fs/minix/namei.c | if (!empty_dir(new_inode)) |
new_inode | 731 | fs/minix/namei.c | if (new_inode->i_count > 1) |
new_inode | 735 | fs/minix/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 736 | fs/minix/namei.c | current->fsuid != new_inode->i_uid && |
new_inode | 741 | fs/minix/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
new_inode | 753 | fs/minix/namei.c | if (!new_inode && new_dir->i_nlink >= MINIX_LINK_MAX) |
new_inode | 762 | fs/minix/namei.c | if (new_inode && (new_de->inode != new_inode->i_ino)) |
new_inode | 764 | fs/minix/namei.c | if (new_de->inode && !new_inode) |
new_inode | 777 | fs/minix/namei.c | if (new_inode) { |
new_inode | 778 | fs/minix/namei.c | new_inode->i_nlink--; |
new_inode | 779 | fs/minix/namei.c | new_inode->i_ctime = CURRENT_TIME; |
new_inode | 780 | fs/minix/namei.c | new_inode->i_dirt = 1; |
new_inode | 789 | fs/minix/namei.c | if (new_inode) { |
new_inode | 790 | fs/minix/namei.c | new_inode->i_nlink--; |
new_inode | 791 | fs/minix/namei.c | new_inode->i_dirt = 1; |
new_inode | 803 | fs/minix/namei.c | iput(new_inode); |
new_inode | 545 | fs/msdos/namei.c | struct inode *new_inode,*old_inode; |
new_inode | 555 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
new_inode | 559 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) |
new_inode | 561 | fs/msdos/namei.c | ? msdos_empty(new_inode) |
new_inode | 568 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 572 | fs/msdos/namei.c | if (S_ISDIR(new_inode->i_mode)) { |
new_inode | 576 | fs/msdos/namei.c | new_inode->i_nlink = 0; |
new_inode | 577 | fs/msdos/namei.c | MSDOS_I(new_inode)->i_busy = 1; |
new_inode | 578 | fs/msdos/namei.c | new_inode->i_dirt = 1; |
new_inode | 582 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 610 | fs/msdos/namei.c | struct inode *old_inode,*new_inode,*free_inode,*dotdot_inode,*walk; |
new_inode | 645 | fs/msdos/namei.c | new_inode = NULL; /* to make GCC happy */ |
new_inode | 647 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
new_inode | 652 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) |
new_inode | 654 | fs/msdos/namei.c | ? msdos_empty(new_inode) |
new_inode | 661 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 666 | fs/msdos/namei.c | new_inode->i_nlink = 0; |
new_inode | 667 | fs/msdos/namei.c | MSDOS_I(new_inode)->i_busy = 1; |
new_inode | 668 | fs/msdos/namei.c | new_inode->i_dirt = 1; |
new_inode | 682 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 687 | fs/msdos/namei.c | if (exists && S_ISDIR(new_inode->i_mode)) { |
new_inode | 700 | fs/msdos/namei.c | MSDOS_I(new_inode)->i_depend = free_inode; |
new_inode | 701 | fs/msdos/namei.c | MSDOS_I(free_inode)->i_old = new_inode; |
new_inode | 703 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 70 | fs/proc/link.c | struct inode * new_inode; |
new_inode | 92 | fs/proc/link.c | new_inode = NULL; |
new_inode | 97 | fs/proc/link.c | new_inode = p->fs->pwd; |
new_inode | 102 | fs/proc/link.c | new_inode = p->fs->root; |
new_inode | 111 | fs/proc/link.c | new_inode = vma->vm_inode; |
new_inode | 125 | fs/proc/link.c | new_inode = p->files->fd[ino]->f_inode; |
new_inode | 131 | fs/proc/link.c | if (!new_inode) |
new_inode | 133 | fs/proc/link.c | *res_inode = new_inode; |
new_inode | 134 | fs/proc/link.c | new_inode->i_count++; |
new_inode | 633 | fs/sysv/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 638 | fs/sysv/namei.c | new_inode->i_count++; |
new_inode | 641 | fs/sysv/namei.c | if (new_inode == old_inode) { |
new_inode | 645 | fs/sysv/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 647 | fs/sysv/namei.c | ino = new_inode->i_ino; |
new_inode | 648 | fs/sysv/namei.c | if (sysv_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 650 | fs/sysv/namei.c | if (new_inode->i_ino == ino) /* root dir reached ? */ |
new_inode | 653 | fs/sysv/namei.c | iput(new_inode); |
new_inode | 673 | fs/sysv/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 684 | fs/sysv/namei.c | iput(new_inode); |
new_inode | 688 | fs/sysv/namei.c | old_inode = new_inode = NULL; |
new_inode | 704 | fs/sysv/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode, 0); |
new_inode | 705 | fs/sysv/namei.c | if (!new_inode) { |
new_inode | 710 | fs/sysv/namei.c | if (new_inode == old_inode) { |
new_inode | 714 | fs/sysv/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 722 | fs/sysv/namei.c | if (!empty_dir(new_inode)) |
new_inode | 725 | fs/sysv/namei.c | if (new_inode->i_count > 1) |
new_inode | 729 | fs/sysv/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 730 | fs/sysv/namei.c | current->fsuid != new_inode->i_uid && |
new_inode | 735 | fs/sysv/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
new_inode | 747 | fs/sysv/namei.c | if (!new_inode && new_dir->i_nlink >= new_dir->i_sb->sv_link_max) |
new_inode | 756 | fs/sysv/namei.c | if (new_inode && (new_de->inode != new_inode->i_ino)) |
new_inode | 758 | fs/sysv/namei.c | if (new_de->inode && !new_inode) |
new_inode | 769 | fs/sysv/namei.c | if (new_inode) { |
new_inode | 770 | fs/sysv/namei.c | new_inode->i_nlink--; |
new_inode | 771 | fs/sysv/namei.c | new_inode->i_ctime = CURRENT_TIME; |
new_inode | 772 | fs/sysv/namei.c | new_inode->i_dirt = 1; |
new_inode | 781 | fs/sysv/namei.c | if (new_inode) { |
new_inode | 782 | fs/sysv/namei.c | new_inode->i_nlink--; |
new_inode | 783 | fs/sysv/namei.c | new_inode->i_dirt = 1; |
new_inode | 795 | fs/sysv/namei.c | iput(new_inode); |
new_inode | 1360 | fs/vfat/namei.c | struct inode *old_inode, *new_inode, *dotdot_inode, *walk; |
new_inode | 1371 | fs/vfat/namei.c | old_inode = new_inode = NULL; |
new_inode | 1426 | fs/vfat/namei.c | if (!(new_inode = iget(new_dir->i_sb,res))) |
new_inode | 1428 | fs/vfat/namei.c | new_is_dir = S_ISDIR(new_inode->i_mode); |
new_inode | 1429 | fs/vfat/namei.c | iput(new_inode); |
new_inode | 1465 | fs/vfat/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) goto rename_done; |
new_inode | 1474 | fs/vfat/namei.c | vfat_read_inode(new_inode); |
new_inode | 1496 | fs/vfat/namei.c | iput(new_inode); |
new_inode | 677 | fs/xiafs/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 682 | fs/xiafs/namei.c | new_inode->i_count++; |
new_inode | 685 | fs/xiafs/namei.c | if (new_inode == old_inode) { |
new_inode | 689 | fs/xiafs/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 691 | fs/xiafs/namei.c | ino = new_inode->i_ino; |
new_inode | 692 | fs/xiafs/namei.c | if (xiafs_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 694 | fs/xiafs/namei.c | if (new_inode->i_ino == ino) |
new_inode | 697 | fs/xiafs/namei.c | iput(new_inode); |
new_inode | 718 | fs/xiafs/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 724 | fs/xiafs/namei.c | old_inode = new_inode = NULL; |
new_inode | 740 | fs/xiafs/namei.c | new_inode = __iget(new_dir->i_sb, new_de->d_ino, 0); |
new_inode | 741 | fs/xiafs/namei.c | if (!new_inode) { |
new_inode | 746 | fs/xiafs/namei.c | if (new_inode == old_inode) { |
new_inode | 750 | fs/xiafs/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 755 | fs/xiafs/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 756 | fs/xiafs/namei.c | current->fsuid != new_inode->i_uid && |
new_inode | 784 | fs/xiafs/namei.c | if ( (new_inode && (new_de->d_ino != new_inode->i_ino)) |
new_inode | 785 | fs/xiafs/namei.c | || (new_de->d_ino && !new_inode) |
new_inode | 792 | fs/xiafs/namei.c | iput(new_inode); |
new_inode | 799 | fs/xiafs/namei.c | if (new_inode) { |
new_inode | 800 | fs/xiafs/namei.c | new_inode->i_nlink--; |
new_inode | 801 | fs/xiafs/namei.c | new_inode->i_dirt = 1; |
new_inode | 819 | fs/xiafs/namei.c | iput(new_inode); |