tag | line | file | source code |
new_inode | 723 | fs/ext/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 728 | fs/ext/namei.c | new_inode->i_count++; |
new_inode | 731 | fs/ext/namei.c | if (new_inode == old_inode) { |
new_inode | 735 | fs/ext/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 737 | fs/ext/namei.c | ino = new_inode->i_ino; |
new_inode | 738 | fs/ext/namei.c | if (ext_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 740 | fs/ext/namei.c | if (new_inode->i_ino == ino) |
new_inode | 743 | fs/ext/namei.c | iput(new_inode); |
new_inode | 768 | fs/ext/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 779 | fs/ext/namei.c | iput(new_inode); |
new_inode | 783 | fs/ext/namei.c | old_inode = new_inode = NULL; |
new_inode | 799 | fs/ext/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode,0); /* don't cross mnt-points */ |
new_inode | 800 | fs/ext/namei.c | if (!new_inode) { |
new_inode | 805 | fs/ext/namei.c | if (new_inode == old_inode) { |
new_inode | 809 | fs/ext/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 814 | fs/ext/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 815 | 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 | 872 | fs/ext2/namei.c | static int subdir (struct inode * new_inode, struct inode * old_inode) |
new_inode | 877 | fs/ext2/namei.c | new_inode->i_count++; |
new_inode | 880 | fs/ext2/namei.c | if (new_inode == old_inode) { |
new_inode | 884 | fs/ext2/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 886 | fs/ext2/namei.c | ino = new_inode->i_ino; |
new_inode | 887 | fs/ext2/namei.c | if (ext2_lookup (new_inode, "..", 2, &new_inode)) |
new_inode | 889 | fs/ext2/namei.c | if (new_inode->i_ino == ino) |
new_inode | 892 | fs/ext2/namei.c | iput (new_inode); |
new_inode | 919 | fs/ext2/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 932 | fs/ext2/namei.c | iput (new_inode); |
new_inode | 936 | fs/ext2/namei.c | old_inode = new_inode = NULL; |
new_inode | 955 | fs/ext2/namei.c | new_inode = __iget (new_dir->i_sb, new_de->inode, 0); /* no mntp cross */ |
new_inode | 956 | fs/ext2/namei.c | if (!new_inode) { |
new_inode | 961 | fs/ext2/namei.c | if (new_inode == old_inode) { |
new_inode | 965 | fs/ext2/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 973 | fs/ext2/namei.c | if (!empty_dir (new_inode)) |
new_inode | 976 | fs/ext2/namei.c | if (new_inode->i_count > 1) |
new_inode | 980 | fs/ext2/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 981 | fs/ext2/namei.c | current->fsuid != new_inode->i_uid && |
new_inode | 986 | fs/ext2/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
new_inode | 997 | fs/ext2/namei.c | if (!new_inode && new_dir->i_nlink >= EXT2_LINK_MAX) |
new_inode | 1008 | fs/ext2/namei.c | if (new_inode && (new_de->inode != new_inode->i_ino)) |
new_inode | 1010 | fs/ext2/namei.c | if (new_de->inode && !new_inode) |
new_inode | 1026 | fs/ext2/namei.c | if (new_inode) { |
new_inode | 1027 | fs/ext2/namei.c | new_inode->i_nlink--; |
new_inode | 1028 | fs/ext2/namei.c | new_inode->i_ctime = CURRENT_TIME; |
new_inode | 1029 | fs/ext2/namei.c | new_inode->i_dirt = 1; |
new_inode | 1039 | fs/ext2/namei.c | if (new_inode) { |
new_inode | 1040 | fs/ext2/namei.c | new_inode->i_nlink--; |
new_inode | 1041 | fs/ext2/namei.c | new_inode->i_dirt = 1; |
new_inode | 1063 | fs/ext2/namei.c | iput (new_inode); |
new_inode | 635 | fs/minix/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 640 | fs/minix/namei.c | new_inode->i_count++; |
new_inode | 643 | fs/minix/namei.c | if (new_inode == old_inode) { |
new_inode | 647 | fs/minix/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 649 | fs/minix/namei.c | ino = new_inode->i_ino; |
new_inode | 650 | fs/minix/namei.c | if (minix_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 652 | fs/minix/namei.c | if (new_inode->i_ino == ino) |
new_inode | 655 | fs/minix/namei.c | iput(new_inode); |
new_inode | 675 | fs/minix/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 688 | fs/minix/namei.c | iput(new_inode); |
new_inode | 692 | fs/minix/namei.c | old_inode = new_inode = NULL; |
new_inode | 708 | fs/minix/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode, 0); |
new_inode | 709 | fs/minix/namei.c | if (!new_inode) { |
new_inode | 714 | fs/minix/namei.c | if (new_inode == old_inode) { |
new_inode | 718 | fs/minix/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 726 | fs/minix/namei.c | if (!empty_dir(new_inode)) |
new_inode | 729 | fs/minix/namei.c | if (new_inode->i_count > 1) |
new_inode | 733 | fs/minix/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 734 | fs/minix/namei.c | current->fsuid != new_inode->i_uid && |
new_inode | 739 | fs/minix/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
new_inode | 751 | fs/minix/namei.c | if (!new_inode && new_dir->i_nlink >= MINIX_LINK_MAX) |
new_inode | 760 | fs/minix/namei.c | if (new_inode && (new_de->inode != new_inode->i_ino)) |
new_inode | 762 | fs/minix/namei.c | if (new_de->inode && !new_inode) |
new_inode | 773 | fs/minix/namei.c | if (new_inode) { |
new_inode | 774 | fs/minix/namei.c | new_inode->i_nlink--; |
new_inode | 775 | fs/minix/namei.c | new_inode->i_ctime = CURRENT_TIME; |
new_inode | 776 | fs/minix/namei.c | new_inode->i_dirt = 1; |
new_inode | 785 | fs/minix/namei.c | if (new_inode) { |
new_inode | 786 | fs/minix/namei.c | new_inode->i_nlink--; |
new_inode | 787 | fs/minix/namei.c | new_inode->i_dirt = 1; |
new_inode | 799 | fs/minix/namei.c | iput(new_inode); |
new_inode | 418 | fs/msdos/namei.c | struct inode *new_inode,*old_inode; |
new_inode | 428 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
new_inode | 432 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ? |
new_inode | 433 | fs/msdos/namei.c | msdos_empty(new_inode) : -EPERM : (old_de->attr & ATTR_DIR) |
new_inode | 436 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 440 | fs/msdos/namei.c | if (S_ISDIR(new_inode->i_mode)) { |
new_inode | 444 | fs/msdos/namei.c | new_inode->i_nlink = 0; |
new_inode | 445 | fs/msdos/namei.c | MSDOS_I(new_inode)->i_busy = 1; |
new_inode | 446 | fs/msdos/namei.c | new_inode->i_dirt = 1; |
new_inode | 449 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 469 | fs/msdos/namei.c | struct inode *old_inode,*new_inode,*free_inode,*dotdot_inode,*walk; |
new_inode | 502 | fs/msdos/namei.c | new_inode = NULL; /* to make GCC happy */ |
new_inode | 504 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
new_inode | 509 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ? |
new_inode | 510 | fs/msdos/namei.c | msdos_empty(new_inode) : -EPERM : (old_de->attr & ATTR_DIR) |
new_inode | 513 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 518 | fs/msdos/namei.c | new_inode->i_nlink = 0; |
new_inode | 519 | fs/msdos/namei.c | MSDOS_I(new_inode)->i_busy = 1; |
new_inode | 520 | fs/msdos/namei.c | new_inode->i_dirt = 1; |
new_inode | 531 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 536 | fs/msdos/namei.c | if (exists && S_ISDIR(new_inode->i_mode)) { |
new_inode | 549 | fs/msdos/namei.c | MSDOS_I(new_inode)->i_depend = free_inode; |
new_inode | 550 | fs/msdos/namei.c | MSDOS_I(free_inode)->i_old = new_inode; |
new_inode | 552 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 644 | fs/sysv/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 649 | fs/sysv/namei.c | new_inode->i_count++; |
new_inode | 652 | fs/sysv/namei.c | if (new_inode == old_inode) { |
new_inode | 656 | fs/sysv/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 658 | fs/sysv/namei.c | ino = new_inode->i_ino; |
new_inode | 659 | fs/sysv/namei.c | if (sysv_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 661 | fs/sysv/namei.c | if (new_inode->i_ino == ino) /* root dir reached ? */ |
new_inode | 664 | fs/sysv/namei.c | iput(new_inode); |
new_inode | 684 | fs/sysv/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 696 | fs/sysv/namei.c | iput(new_inode); |
new_inode | 700 | fs/sysv/namei.c | old_inode = new_inode = NULL; |
new_inode | 716 | fs/sysv/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode, 0); |
new_inode | 717 | fs/sysv/namei.c | if (!new_inode) { |
new_inode | 722 | fs/sysv/namei.c | if (new_inode == old_inode) { |
new_inode | 726 | fs/sysv/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 734 | fs/sysv/namei.c | if (!empty_dir(new_inode)) |
new_inode | 737 | fs/sysv/namei.c | if (new_inode->i_count > 1) |
new_inode | 741 | fs/sysv/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 742 | fs/sysv/namei.c | current->fsuid != new_inode->i_uid && |
new_inode | 747 | fs/sysv/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
new_inode | 759 | fs/sysv/namei.c | if (!new_inode && new_dir->i_nlink >= new_dir->i_sb->sv_link_max) |
new_inode | 768 | fs/sysv/namei.c | if (new_inode && (new_de->inode != new_inode->i_ino)) |
new_inode | 770 | fs/sysv/namei.c | if (new_de->inode && !new_inode) |
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_ctime = CURRENT_TIME; |
new_inode | 784 | fs/sysv/namei.c | new_inode->i_dirt = 1; |
new_inode | 793 | fs/sysv/namei.c | if (new_inode) { |
new_inode | 794 | fs/sysv/namei.c | new_inode->i_nlink--; |
new_inode | 795 | fs/sysv/namei.c | new_inode->i_dirt = 1; |
new_inode | 807 | fs/sysv/namei.c | iput(new_inode); |
new_inode | 675 | fs/xiafs/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 680 | fs/xiafs/namei.c | new_inode->i_count++; |
new_inode | 683 | fs/xiafs/namei.c | if (new_inode == old_inode) { |
new_inode | 687 | fs/xiafs/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 689 | fs/xiafs/namei.c | ino = new_inode->i_ino; |
new_inode | 690 | fs/xiafs/namei.c | if (xiafs_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 692 | fs/xiafs/namei.c | if (new_inode->i_ino == ino) |
new_inode | 695 | fs/xiafs/namei.c | iput(new_inode); |
new_inode | 716 | fs/xiafs/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 722 | fs/xiafs/namei.c | old_inode = new_inode = NULL; |
new_inode | 738 | fs/xiafs/namei.c | new_inode = __iget(new_dir->i_sb, new_de->d_ino, 0); |
new_inode | 739 | fs/xiafs/namei.c | if (!new_inode) { |
new_inode | 744 | fs/xiafs/namei.c | if (new_inode == old_inode) { |
new_inode | 748 | fs/xiafs/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 753 | fs/xiafs/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 754 | fs/xiafs/namei.c | current->fsuid != new_inode->i_uid && |
new_inode | 783 | fs/xiafs/namei.c | if ( (new_inode && (new_de->d_ino != new_inode->i_ino)) |
new_inode | 784 | fs/xiafs/namei.c | || (new_de->d_ino && !new_inode) |
new_inode | 791 | fs/xiafs/namei.c | iput(new_inode); |
new_inode | 798 | fs/xiafs/namei.c | if (new_inode) { |
new_inode | 799 | fs/xiafs/namei.c | new_inode->i_nlink--; |
new_inode | 800 | fs/xiafs/namei.c | new_inode->i_dirt = 1; |
new_inode | 818 | fs/xiafs/namei.c | iput(new_inode); |