tag | line | file | source code |
new_inode | 721 | fs/ext/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 726 | fs/ext/namei.c | new_inode->i_count++; |
new_inode | 729 | fs/ext/namei.c | if (new_inode == old_inode) { |
new_inode | 733 | fs/ext/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 735 | fs/ext/namei.c | ino = new_inode->i_ino; |
new_inode | 736 | fs/ext/namei.c | if (ext_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 738 | fs/ext/namei.c | if (new_inode->i_ino == ino) |
new_inode | 741 | fs/ext/namei.c | iput(new_inode); |
new_inode | 766 | fs/ext/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 777 | fs/ext/namei.c | iput(new_inode); |
new_inode | 781 | fs/ext/namei.c | old_inode = new_inode = NULL; |
new_inode | 797 | fs/ext/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode,0); /* don't cross mnt-points */ |
new_inode | 798 | fs/ext/namei.c | if (!new_inode) { |
new_inode | 803 | fs/ext/namei.c | if (new_inode == old_inode) { |
new_inode | 807 | fs/ext/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 812 | fs/ext/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 813 | fs/ext/namei.c | current->euid != new_inode->i_uid && |
new_inode | 839 | fs/ext/namei.c | if (new_inode && (new_de->inode != new_inode->i_ino)) |
new_inode | 841 | fs/ext/namei.c | if (new_de->inode && !new_inode) |
new_inode | 850 | fs/ext/namei.c | if (new_inode) { |
new_inode | 851 | fs/ext/namei.c | new_inode->i_nlink--; |
new_inode | 852 | fs/ext/namei.c | new_inode->i_dirt = 1; |
new_inode | 870 | fs/ext/namei.c | iput(new_inode); |
new_inode | 883 | fs/ext2/namei.c | static int subdir (struct inode * new_inode, struct inode * old_inode) |
new_inode | 888 | fs/ext2/namei.c | new_inode->i_count++; |
new_inode | 891 | fs/ext2/namei.c | if (new_inode == old_inode) { |
new_inode | 895 | fs/ext2/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 897 | fs/ext2/namei.c | ino = new_inode->i_ino; |
new_inode | 898 | fs/ext2/namei.c | if (ext2_lookup (new_inode, "..", 2, &new_inode)) |
new_inode | 900 | fs/ext2/namei.c | if (new_inode->i_ino == ino) |
new_inode | 903 | fs/ext2/namei.c | iput (new_inode); |
new_inode | 930 | 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 | 964 | fs/ext2/namei.c | new_inode = __iget (new_dir->i_sb, new_de->inode, 0); /* no mntp cross */ |
new_inode | 965 | fs/ext2/namei.c | if (!new_inode) { |
new_inode | 970 | fs/ext2/namei.c | if (new_inode == old_inode) { |
new_inode | 974 | fs/ext2/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 982 | fs/ext2/namei.c | if (!empty_dir (new_inode)) |
new_inode | 985 | fs/ext2/namei.c | if (new_inode->i_count > 1) |
new_inode | 989 | fs/ext2/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 990 | fs/ext2/namei.c | current->euid != new_inode->i_uid && |
new_inode | 995 | fs/ext2/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
new_inode | 1006 | fs/ext2/namei.c | if (!new_inode && new_dir->i_nlink >= EXT2_LINK_MAX) |
new_inode | 1017 | fs/ext2/namei.c | if (new_inode && (new_de->inode != new_inode->i_ino)) |
new_inode | 1019 | fs/ext2/namei.c | if (new_de->inode && !new_inode) |
new_inode | 1038 | fs/ext2/namei.c | if (new_inode) { |
new_inode | 1039 | fs/ext2/namei.c | new_inode->i_nlink--; |
new_inode | 1040 | fs/ext2/namei.c | new_inode->i_ctime = CURRENT_TIME; |
new_inode | 1041 | fs/ext2/namei.c | new_inode->i_dirt = 1; |
new_inode | 1060 | fs/ext2/namei.c | if (new_inode) { |
new_inode | 1061 | fs/ext2/namei.c | new_inode->i_nlink--; |
new_inode | 1062 | fs/ext2/namei.c | new_inode->i_dirt = 1; |
new_inode | 1074 | fs/ext2/namei.c | iput (new_inode); |
new_inode | 634 | fs/minix/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 639 | fs/minix/namei.c | new_inode->i_count++; |
new_inode | 642 | fs/minix/namei.c | if (new_inode == old_inode) { |
new_inode | 646 | fs/minix/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 648 | fs/minix/namei.c | ino = new_inode->i_ino; |
new_inode | 649 | fs/minix/namei.c | if (minix_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 651 | fs/minix/namei.c | if (new_inode->i_ino == ino) |
new_inode | 654 | fs/minix/namei.c | iput(new_inode); |
new_inode | 674 | fs/minix/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 687 | fs/minix/namei.c | iput(new_inode); |
new_inode | 691 | fs/minix/namei.c | old_inode = new_inode = NULL; |
new_inode | 707 | fs/minix/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode, 0); |
new_inode | 708 | fs/minix/namei.c | if (!new_inode) { |
new_inode | 713 | fs/minix/namei.c | if (new_inode == old_inode) { |
new_inode | 717 | fs/minix/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 725 | fs/minix/namei.c | if (!empty_dir(new_inode)) |
new_inode | 728 | fs/minix/namei.c | if (new_inode->i_count > 1) |
new_inode | 732 | fs/minix/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 733 | fs/minix/namei.c | current->euid != new_inode->i_uid && |
new_inode | 738 | fs/minix/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
new_inode | 750 | fs/minix/namei.c | if (!new_inode && new_dir->i_nlink >= MINIX_LINK_MAX) |
new_inode | 759 | fs/minix/namei.c | if (new_inode && (new_de->inode != new_inode->i_ino)) |
new_inode | 761 | fs/minix/namei.c | if (new_de->inode && !new_inode) |
new_inode | 772 | fs/minix/namei.c | if (new_inode) { |
new_inode | 773 | fs/minix/namei.c | new_inode->i_nlink--; |
new_inode | 774 | fs/minix/namei.c | new_inode->i_ctime = CURRENT_TIME; |
new_inode | 775 | fs/minix/namei.c | new_inode->i_dirt = 1; |
new_inode | 784 | fs/minix/namei.c | if (new_inode) { |
new_inode | 785 | fs/minix/namei.c | new_inode->i_nlink--; |
new_inode | 786 | fs/minix/namei.c | new_inode->i_dirt = 1; |
new_inode | 798 | fs/minix/namei.c | iput(new_inode); |
new_inode | 402 | fs/msdos/namei.c | struct inode *new_inode,*old_inode; |
new_inode | 412 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
new_inode | 416 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ? |
new_inode | 417 | fs/msdos/namei.c | msdos_empty(new_inode) : -EPERM : (old_de->attr & ATTR_DIR) |
new_inode | 420 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 424 | fs/msdos/namei.c | if (S_ISDIR(new_inode->i_mode)) { |
new_inode | 428 | fs/msdos/namei.c | new_inode->i_nlink = 0; |
new_inode | 429 | fs/msdos/namei.c | MSDOS_I(new_inode)->i_busy = 1; |
new_inode | 430 | fs/msdos/namei.c | new_inode->i_dirt = 1; |
new_inode | 433 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 453 | fs/msdos/namei.c | struct inode *old_inode,*new_inode,*free_inode,*dotdot_inode,*walk; |
new_inode | 486 | fs/msdos/namei.c | new_inode = NULL; /* to make GCC happy */ |
new_inode | 488 | fs/msdos/namei.c | if (!(new_inode = iget(new_dir->i_sb,new_ino))) { |
new_inode | 493 | fs/msdos/namei.c | error = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ? |
new_inode | 494 | fs/msdos/namei.c | msdos_empty(new_inode) : -EPERM : (old_de->attr & ATTR_DIR) |
new_inode | 497 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 502 | fs/msdos/namei.c | new_inode->i_nlink = 0; |
new_inode | 503 | fs/msdos/namei.c | MSDOS_I(new_inode)->i_busy = 1; |
new_inode | 504 | fs/msdos/namei.c | new_inode->i_dirt = 1; |
new_inode | 515 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 520 | fs/msdos/namei.c | if (exists && S_ISDIR(new_inode->i_mode)) { |
new_inode | 533 | fs/msdos/namei.c | MSDOS_I(new_inode)->i_depend = free_inode; |
new_inode | 534 | fs/msdos/namei.c | MSDOS_I(free_inode)->i_old = new_inode; |
new_inode | 536 | fs/msdos/namei.c | iput(new_inode); |
new_inode | 643 | fs/sysv/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 648 | fs/sysv/namei.c | new_inode->i_count++; |
new_inode | 651 | fs/sysv/namei.c | if (new_inode == old_inode) { |
new_inode | 655 | fs/sysv/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 657 | fs/sysv/namei.c | ino = new_inode->i_ino; |
new_inode | 658 | fs/sysv/namei.c | if (sysv_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 660 | fs/sysv/namei.c | if (new_inode->i_ino == ino) /* root dir reached ? */ |
new_inode | 663 | fs/sysv/namei.c | iput(new_inode); |
new_inode | 683 | fs/sysv/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 695 | fs/sysv/namei.c | iput(new_inode); |
new_inode | 699 | fs/sysv/namei.c | old_inode = new_inode = NULL; |
new_inode | 715 | fs/sysv/namei.c | new_inode = __iget(new_dir->i_sb, new_de->inode, 0); |
new_inode | 716 | fs/sysv/namei.c | if (!new_inode) { |
new_inode | 721 | fs/sysv/namei.c | if (new_inode == old_inode) { |
new_inode | 725 | fs/sysv/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 733 | fs/sysv/namei.c | if (!empty_dir(new_inode)) |
new_inode | 736 | fs/sysv/namei.c | if (new_inode->i_count > 1) |
new_inode | 740 | fs/sysv/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 741 | fs/sysv/namei.c | current->euid != new_inode->i_uid && |
new_inode | 746 | fs/sysv/namei.c | if (new_inode && !S_ISDIR(new_inode->i_mode)) |
new_inode | 758 | fs/sysv/namei.c | if (!new_inode && new_dir->i_nlink >= new_dir->i_sb->sv_link_max) |
new_inode | 767 | fs/sysv/namei.c | if (new_inode && (new_de->inode != new_inode->i_ino)) |
new_inode | 769 | fs/sysv/namei.c | if (new_de->inode && !new_inode) |
new_inode | 780 | fs/sysv/namei.c | if (new_inode) { |
new_inode | 781 | fs/sysv/namei.c | new_inode->i_nlink--; |
new_inode | 782 | fs/sysv/namei.c | new_inode->i_ctime = CURRENT_TIME; |
new_inode | 783 | fs/sysv/namei.c | new_inode->i_dirt = 1; |
new_inode | 792 | fs/sysv/namei.c | if (new_inode) { |
new_inode | 793 | fs/sysv/namei.c | new_inode->i_nlink--; |
new_inode | 794 | fs/sysv/namei.c | new_inode->i_dirt = 1; |
new_inode | 806 | fs/sysv/namei.c | iput(new_inode); |
new_inode | 674 | fs/xiafs/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
new_inode | 679 | fs/xiafs/namei.c | new_inode->i_count++; |
new_inode | 682 | fs/xiafs/namei.c | if (new_inode == old_inode) { |
new_inode | 686 | fs/xiafs/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
new_inode | 688 | fs/xiafs/namei.c | ino = new_inode->i_ino; |
new_inode | 689 | fs/xiafs/namei.c | if (xiafs_lookup(new_inode,"..",2,&new_inode)) |
new_inode | 691 | fs/xiafs/namei.c | if (new_inode->i_ino == ino) |
new_inode | 694 | fs/xiafs/namei.c | iput(new_inode); |
new_inode | 715 | fs/xiafs/namei.c | struct inode * old_inode, * new_inode; |
new_inode | 721 | fs/xiafs/namei.c | old_inode = new_inode = NULL; |
new_inode | 737 | fs/xiafs/namei.c | new_inode = __iget(new_dir->i_sb, new_de->d_ino, 0); |
new_inode | 738 | fs/xiafs/namei.c | if (!new_inode) { |
new_inode | 743 | fs/xiafs/namei.c | if (new_inode == old_inode) { |
new_inode | 747 | fs/xiafs/namei.c | if (new_inode && S_ISDIR(new_inode->i_mode)) { |
new_inode | 752 | fs/xiafs/namei.c | if (new_inode && (new_dir->i_mode & S_ISVTX) && |
new_inode | 753 | fs/xiafs/namei.c | current->euid != new_inode->i_uid && |
new_inode | 782 | fs/xiafs/namei.c | if ( (new_inode && (new_de->d_ino != new_inode->i_ino)) |
new_inode | 783 | fs/xiafs/namei.c | || (new_de->d_ino && !new_inode) |
new_inode | 790 | fs/xiafs/namei.c | iput(new_inode); |
new_inode | 797 | fs/xiafs/namei.c | if (new_inode) { |
new_inode | 798 | fs/xiafs/namei.c | new_inode->i_nlink--; |
new_inode | 799 | fs/xiafs/namei.c | new_inode->i_dirt = 1; |
new_inode | 817 | fs/xiafs/namei.c | iput(new_inode); |