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 | 881 | fs/ext2/namei.c | static int subdir (struct inode * new_inode, struct inode * old_inode) |
new_inode | 886 | fs/ext2/namei.c | new_inode->i_count++; |
new_inode | 889 | fs/ext2/namei.c | if (new_inode == old_inode) { |
new_inode | 893 | fs/ext2/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 895 | fs/ext2/namei.c | ino = new_inode->i_ino; |
new_inode | 896 | fs/ext2/namei.c | if (ext2_lookup (new_inode, "..", 2, &new_inode)) |
new_inode | 898 | fs/ext2/namei.c | if (new_inode->i_ino == ino) |
new_inode | 901 | fs/ext2/namei.c | iput (new_inode); |
new_inode | 928 | fs/ext2/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 943 | fs/ext2/namei.c | iput (new_inode); |
new_inode | 947 | fs/ext2/namei.c | old_inode = new_inode = NULL; |
new_inode | 966 | fs/ext2/namei.c | new_inode = __iget (new_dir->i_sb, new_de->inode, 0); /* no mntp cross */ |
new_inode | 967 | fs/ext2/namei.c | if (!new_inode) { |
new_inode | 972 | fs/ext2/namei.c | if (new_inode == old_inode) { |
new_inode | 976 | fs/ext2/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 984 | fs/ext2/namei.c | if (!empty_dir (new_inode)) |
new_inode | 987 | fs/ext2/namei.c | if (new_inode->i_count > 1) |
new_inode | 991 | fs/ext2/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 992 | fs/ext2/namei.c | current->fsuid != new_inode->i_uid && |
new_inode | 997 | fs/ext2/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
new_inode | 1008 | fs/ext2/namei.c | if (!new_inode && new_dir->i_nlink >= EXT2_LINK_MAX) |
new_inode | 1020 | fs/ext2/namei.c | if (new_inode && (new_de->inode != new_inode->i_ino)) |
new_inode | 1022 | fs/ext2/namei.c | if (new_de->inode && !new_inode) |
new_inode | 1037 | fs/ext2/namei.c | if (new_inode) { |
new_inode | 1038 | fs/ext2/namei.c | new_inode->i_nlink--; |
new_inode | 1039 | fs/ext2/namei.c | new_inode->i_ctime = CURRENT_TIME; |
new_inode | 1040 | fs/ext2/namei.c | new_inode->i_dirt = 1; |
new_inode | 1050 | fs/ext2/namei.c | if (new_inode) { |
new_inode | 1051 | fs/ext2/namei.c | new_inode->i_nlink--; |
new_inode | 1052 | fs/ext2/namei.c | new_inode->i_dirt = 1; |
new_inode | 1074 | fs/ext2/namei.c | iput (new_inode); |
new_inode | 641 | fs/minix/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 646 | fs/minix/namei.c | new_inode->i_count++; |
new_inode | 649 | fs/minix/namei.c | if (new_inode == old_inode) { |
new_inode | 653 | fs/minix/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 655 | fs/minix/namei.c | ino = new_inode->i_ino; |
new_inode | 656 | fs/minix/namei.c | if (minix_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 658 | fs/minix/namei.c | if (new_inode->i_ino == ino) |
new_inode | 661 | fs/minix/namei.c | iput(new_inode); |
new_inode | 681 | fs/minix/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 694 | fs/minix/namei.c | iput(new_inode); |
new_inode | 698 | fs/minix/namei.c | old_inode = new_inode = NULL; |
new_inode | 714 | fs/minix/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode, 0); |
new_inode | 715 | fs/minix/namei.c | if (!new_inode) { |
new_inode | 720 | fs/minix/namei.c | if (new_inode == old_inode) { |
new_inode | 724 | fs/minix/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 732 | fs/minix/namei.c | if (!empty_dir(new_inode)) |
new_inode | 735 | fs/minix/namei.c | if (new_inode->i_count > 1) |
new_inode | 739 | fs/minix/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 740 | fs/minix/namei.c | current->fsuid != new_inode->i_uid && |
new_inode | 745 | fs/minix/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
new_inode | 757 | fs/minix/namei.c | if (!new_inode && new_dir->i_nlink >= MINIX_LINK_MAX) |
new_inode | 766 | fs/minix/namei.c | if (new_inode && (new_de->inode != new_inode->i_ino)) |
new_inode | 768 | fs/minix/namei.c | if (new_de->inode && !new_inode) |
new_inode | 781 | fs/minix/namei.c | if (new_inode) { |
new_inode | 782 | fs/minix/namei.c | new_inode->i_nlink--; |
new_inode | 783 | fs/minix/namei.c | new_inode->i_ctime = CURRENT_TIME; |
new_inode | 784 | fs/minix/namei.c | new_inode->i_dirt = 1; |
new_inode | 793 | fs/minix/namei.c | if (new_inode) { |
new_inode | 794 | fs/minix/namei.c | new_inode->i_nlink--; |
new_inode | 795 | fs/minix/namei.c | new_inode->i_dirt = 1; |
new_inode | 807 | fs/minix/namei.c | iput(new_inode); |
new_inode | 447 | fs/msdos/namei.c | struct inode *new_inode,*old_inode; |
new_inode | 457 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
new_inode | 461 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ? |
new_inode | 462 | fs/msdos/namei.c | msdos_empty(new_inode) : -EPERM : (old_de->attr & ATTR_DIR) |
new_inode | 465 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 469 | fs/msdos/namei.c | if (S_ISDIR(new_inode->i_mode)) { |
new_inode | 473 | fs/msdos/namei.c | new_inode->i_nlink = 0; |
new_inode | 474 | fs/msdos/namei.c | MSDOS_I(new_inode)->i_busy = 1; |
new_inode | 475 | fs/msdos/namei.c | new_inode->i_dirt = 1; |
new_inode | 478 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 499 | fs/msdos/namei.c | struct inode *old_inode,*new_inode,*free_inode,*dotdot_inode,*walk; |
new_inode | 532 | fs/msdos/namei.c | new_inode = NULL; /* to make GCC happy */ |
new_inode | 534 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
new_inode | 539 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ? |
new_inode | 540 | fs/msdos/namei.c | msdos_empty(new_inode) : -EPERM : (old_de->attr & ATTR_DIR) |
new_inode | 543 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 548 | fs/msdos/namei.c | new_inode->i_nlink = 0; |
new_inode | 549 | fs/msdos/namei.c | MSDOS_I(new_inode)->i_busy = 1; |
new_inode | 550 | fs/msdos/namei.c | new_inode->i_dirt = 1; |
new_inode | 561 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 566 | fs/msdos/namei.c | if (exists && S_ISDIR(new_inode->i_mode)) { |
new_inode | 579 | fs/msdos/namei.c | MSDOS_I(new_inode)->i_depend = free_inode; |
new_inode | 580 | fs/msdos/namei.c | MSDOS_I(free_inode)->i_old = new_inode; |
new_inode | 582 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 68 | fs/proc/link.c | struct inode * new_inode; |
new_inode | 90 | fs/proc/link.c | new_inode = NULL; |
new_inode | 95 | fs/proc/link.c | new_inode = p->fs->pwd; |
new_inode | 100 | fs/proc/link.c | new_inode = p->fs->root; |
new_inode | 109 | fs/proc/link.c | new_inode = vma->vm_inode; |
new_inode | 123 | fs/proc/link.c | new_inode = p->files->fd[ino]->f_inode; |
new_inode | 129 | fs/proc/link.c | if (!new_inode) |
new_inode | 131 | fs/proc/link.c | *res_inode = new_inode; |
new_inode | 132 | fs/proc/link.c | new_inode->i_count++; |
new_inode | 637 | fs/sysv/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 642 | fs/sysv/namei.c | new_inode->i_count++; |
new_inode | 645 | fs/sysv/namei.c | if (new_inode == old_inode) { |
new_inode | 649 | fs/sysv/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 651 | fs/sysv/namei.c | ino = new_inode->i_ino; |
new_inode | 652 | fs/sysv/namei.c | if (sysv_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 654 | fs/sysv/namei.c | if (new_inode->i_ino == ino) /* root dir reached ? */ |
new_inode | 657 | fs/sysv/namei.c | iput(new_inode); |
new_inode | 677 | fs/sysv/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 688 | fs/sysv/namei.c | iput(new_inode); |
new_inode | 692 | fs/sysv/namei.c | old_inode = new_inode = NULL; |
new_inode | 708 | fs/sysv/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode, 0); |
new_inode | 709 | fs/sysv/namei.c | if (!new_inode) { |
new_inode | 714 | fs/sysv/namei.c | if (new_inode == old_inode) { |
new_inode | 718 | fs/sysv/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 726 | fs/sysv/namei.c | if (!empty_dir(new_inode)) |
new_inode | 729 | fs/sysv/namei.c | if (new_inode->i_count > 1) |
new_inode | 733 | fs/sysv/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 734 | fs/sysv/namei.c | current->fsuid != new_inode->i_uid && |
new_inode | 739 | fs/sysv/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
new_inode | 751 | fs/sysv/namei.c | if (!new_inode && new_dir->i_nlink >= new_dir->i_sb->sv_link_max) |
new_inode | 760 | fs/sysv/namei.c | if (new_inode && (new_de->inode != new_inode->i_ino)) |
new_inode | 762 | fs/sysv/namei.c | if (new_de->inode && !new_inode) |
new_inode | 773 | fs/sysv/namei.c | if (new_inode) { |
new_inode | 774 | fs/sysv/namei.c | new_inode->i_nlink--; |
new_inode | 775 | fs/sysv/namei.c | new_inode->i_ctime = CURRENT_TIME; |
new_inode | 776 | fs/sysv/namei.c | new_inode->i_dirt = 1; |
new_inode | 785 | fs/sysv/namei.c | if (new_inode) { |
new_inode | 786 | fs/sysv/namei.c | new_inode->i_nlink--; |
new_inode | 787 | fs/sysv/namei.c | new_inode->i_dirt = 1; |
new_inode | 799 | fs/sysv/namei.c | iput(new_inode); |
new_inode | 680 | fs/xiafs/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 685 | fs/xiafs/namei.c | new_inode->i_count++; |
new_inode | 688 | fs/xiafs/namei.c | if (new_inode == old_inode) { |
new_inode | 692 | fs/xiafs/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 694 | fs/xiafs/namei.c | ino = new_inode->i_ino; |
new_inode | 695 | fs/xiafs/namei.c | if (xiafs_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 697 | fs/xiafs/namei.c | if (new_inode->i_ino == ino) |
new_inode | 700 | fs/xiafs/namei.c | iput(new_inode); |
new_inode | 721 | fs/xiafs/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 727 | fs/xiafs/namei.c | old_inode = new_inode = NULL; |
new_inode | 743 | fs/xiafs/namei.c | new_inode = __iget(new_dir->i_sb, new_de->d_ino, 0); |
new_inode | 744 | fs/xiafs/namei.c | if (!new_inode) { |
new_inode | 749 | fs/xiafs/namei.c | if (new_inode == old_inode) { |
new_inode | 753 | fs/xiafs/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 758 | fs/xiafs/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 759 | fs/xiafs/namei.c | current->fsuid != new_inode->i_uid && |
new_inode | 787 | fs/xiafs/namei.c | if ( (new_inode && (new_de->d_ino != new_inode->i_ino)) |
new_inode | 788 | fs/xiafs/namei.c | || (new_de->d_ino && !new_inode) |
new_inode | 795 | fs/xiafs/namei.c | iput(new_inode); |
new_inode | 802 | fs/xiafs/namei.c | if (new_inode) { |
new_inode | 803 | fs/xiafs/namei.c | new_inode->i_nlink--; |
new_inode | 804 | fs/xiafs/namei.c | new_inode->i_dirt = 1; |
new_inode | 822 | fs/xiafs/namei.c | iput(new_inode); |