tag | line | file | source code |
old_inode | 724 | fs/ext/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
old_inode | 732 | fs/ext/namei.c | if (new_inode == old_inode) { |
old_inode | 736 | fs/ext/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
old_inode | 769 | fs/ext/namei.c | struct inode * old_inode, * new_inode; |
old_inode | 779 | fs/ext/namei.c | iput(old_inode); |
old_inode | 784 | fs/ext/namei.c | old_inode = new_inode = NULL; |
old_inode | 790 | fs/ext/namei.c | old_inode = __iget(old_dir->i_sb, old_de->inode,0); /* don't cross mnt-points */ |
old_inode | 791 | fs/ext/namei.c | if (!old_inode) |
old_inode | 795 | fs/ext/namei.c | current->fsuid != old_inode->i_uid && |
old_inode | 806 | fs/ext/namei.c | if (new_inode == old_inode) { |
old_inode | 819 | fs/ext/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
old_inode | 823 | fs/ext/namei.c | if ((retval = permission(old_inode, MAY_WRITE)) != 0) |
old_inode | 826 | fs/ext/namei.c | if (subdir(new_dir, old_inode)) |
old_inode | 829 | fs/ext/namei.c | dir_bh = ext_bread(old_inode,0,0); |
old_inode | 845 | fs/ext/namei.c | if (old_de->inode != old_inode->i_ino) |
old_inode | 850 | fs/ext/namei.c | new_de->inode = old_inode->i_ino; |
old_inode | 871 | fs/ext/namei.c | iput(old_inode); |
old_inode | 886 | fs/ext2/namei.c | static int subdir (struct inode * new_inode, struct inode * old_inode) |
old_inode | 894 | fs/ext2/namei.c | if (new_inode == old_inode) { |
old_inode | 898 | fs/ext2/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
old_inode | 933 | fs/ext2/namei.c | struct inode * old_inode, * new_inode; |
old_inode | 947 | fs/ext2/namei.c | iput (old_inode); |
old_inode | 952 | fs/ext2/namei.c | old_inode = new_inode = NULL; |
old_inode | 959 | fs/ext2/namei.c | old_inode = __iget (old_dir->i_sb, old_de->inode, 0); /* don't cross mnt-points */ |
old_inode | 960 | fs/ext2/namei.c | if (!old_inode) |
old_inode | 964 | fs/ext2/namei.c | current->fsuid != old_inode->i_uid && |
old_inode | 967 | fs/ext2/namei.c | if (IS_APPEND(old_inode) || IS_IMMUTABLE(old_inode)) |
old_inode | 980 | fs/ext2/namei.c | if (new_inode == old_inode) { |
old_inode | 986 | fs/ext2/namei.c | if (!S_ISDIR(old_inode->i_mode)) |
old_inode | 989 | fs/ext2/namei.c | if (subdir (new_dir, old_inode)) |
old_inode | 1003 | fs/ext2/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
old_inode | 1008 | fs/ext2/namei.c | if (subdir (new_dir, old_inode)) |
old_inode | 1010 | fs/ext2/namei.c | dir_bh = ext2_bread (old_inode, 0, 0, &retval); |
old_inode | 1032 | fs/ext2/namei.c | if (old_de->inode != old_inode->i_ino) |
old_inode | 1037 | fs/ext2/namei.c | new_de->inode = old_inode->i_ino; |
old_inode | 1054 | fs/ext2/namei.c | dcache_add(old_inode, "..", 2, new_dir->i_ino); |
old_inode | 1081 | fs/ext2/namei.c | iput (old_inode); |
old_inode | 637 | fs/minix/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
old_inode | 645 | fs/minix/namei.c | if (new_inode == old_inode) { |
old_inode | 649 | fs/minix/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
old_inode | 677 | fs/minix/namei.c | struct inode * old_inode, * new_inode; |
old_inode | 689 | fs/minix/namei.c | iput(old_inode); |
old_inode | 694 | fs/minix/namei.c | old_inode = new_inode = NULL; |
old_inode | 700 | fs/minix/namei.c | old_inode = __iget(old_dir->i_sb, old_de->inode,0); /* don't cross mnt-points */ |
old_inode | 701 | fs/minix/namei.c | if (!old_inode) |
old_inode | 705 | fs/minix/namei.c | current->fsuid != old_inode->i_uid && |
old_inode | 716 | fs/minix/namei.c | if (new_inode == old_inode) { |
old_inode | 722 | fs/minix/namei.c | if (!S_ISDIR(old_inode->i_mode)) |
old_inode | 725 | fs/minix/namei.c | if (subdir(new_dir, old_inode)) |
old_inode | 739 | fs/minix/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
old_inode | 744 | fs/minix/namei.c | if (subdir(new_dir, old_inode)) |
old_inode | 747 | fs/minix/namei.c | dir_bh = minix_bread(old_inode,0,0); |
old_inode | 766 | fs/minix/namei.c | if (old_de->inode != old_inode->i_ino) |
old_inode | 770 | fs/minix/namei.c | new_de->inode = old_inode->i_ino; |
old_inode | 802 | fs/minix/namei.c | iput(old_inode); |
old_inode | 543 | fs/msdos/namei.c | struct inode *new_inode,*old_inode; |
old_inode | 590 | fs/msdos/namei.c | if ((old_inode = iget(old_dir->i_sb,old_ino)) != NULL) { |
old_inode | 591 | fs/msdos/namei.c | msdos_read_inode(old_inode); |
old_inode | 592 | fs/msdos/namei.c | MSDOS_I(old_inode)->i_attrs = is_hid |
old_inode | 593 | fs/msdos/namei.c | ? (MSDOS_I(old_inode)->i_attrs | ATTR_HIDDEN) |
old_inode | 594 | fs/msdos/namei.c | : (MSDOS_I(old_inode)->i_attrs &~ ATTR_HIDDEN); |
old_inode | 595 | fs/msdos/namei.c | iput(old_inode); |
old_inode | 609 | fs/msdos/namei.c | struct inode *old_inode,*new_inode,*free_inode,*dotdot_inode,*walk; |
old_inode | 633 | fs/msdos/namei.c | if (!(old_inode = iget(old_dir->i_sb,old_ino))) { |
old_inode | 639 | fs/msdos/namei.c | iput(old_inode); |
old_inode | 647 | fs/msdos/namei.c | iput(old_inode); |
old_inode | 661 | fs/msdos/namei.c | iput(old_inode); |
old_inode | 691 | fs/msdos/namei.c | MSDOS_I(old_inode)->i_busy = 1; |
old_inode | 692 | fs/msdos/namei.c | fat_cache_inval_inode(old_inode); |
old_inode | 693 | fs/msdos/namei.c | old_inode->i_dirt = 1; |
old_inode | 706 | fs/msdos/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
old_inode | 707 | fs/msdos/namei.c | if ((error = fat_scan(old_inode,MSDOS_DOTDOT,&dotdot_bh, |
old_inode | 709 | fs/msdos/namei.c | if (!(dotdot_inode = iget(old_inode->i_sb,dotdot_ino))) { |
old_inode | 728 | fs/msdos/namei.c | iput(old_inode); |
old_inode | 633 | fs/sysv/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
old_inode | 641 | fs/sysv/namei.c | if (new_inode == old_inode) { |
old_inode | 645 | fs/sysv/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
old_inode | 673 | fs/sysv/namei.c | struct inode * old_inode, * new_inode; |
old_inode | 683 | fs/sysv/namei.c | iput(old_inode); |
old_inode | 688 | fs/sysv/namei.c | old_inode = new_inode = NULL; |
old_inode | 694 | fs/sysv/namei.c | old_inode = __iget(old_dir->i_sb, old_de->inode, 0); /* don't cross mnt-points */ |
old_inode | 695 | fs/sysv/namei.c | if (!old_inode) |
old_inode | 699 | fs/sysv/namei.c | current->fsuid != old_inode->i_uid && |
old_inode | 710 | fs/sysv/namei.c | if (new_inode == old_inode) { |
old_inode | 716 | fs/sysv/namei.c | if (!S_ISDIR(old_inode->i_mode)) |
old_inode | 719 | fs/sysv/namei.c | if (subdir(new_dir, old_inode)) |
old_inode | 733 | fs/sysv/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
old_inode | 738 | fs/sysv/namei.c | if (subdir(new_dir, old_inode)) |
old_inode | 741 | fs/sysv/namei.c | dir_bh = sysv_file_bread(old_inode,0,0); |
old_inode | 760 | fs/sysv/namei.c | if (old_de->inode != old_inode->i_ino) |
old_inode | 764 | fs/sysv/namei.c | new_de->inode = old_inode->i_ino; |
old_inode | 794 | fs/sysv/namei.c | iput(old_inode); |
old_inode | 1344 | fs/vfat/namei.c | struct inode *old_inode, *new_inode, *dotdot_inode, *walk; |
old_inode | 1355 | fs/vfat/namei.c | old_inode = new_inode = NULL; |
old_inode | 1368 | fs/vfat/namei.c | if (!(old_inode = iget(old_dir->i_sb,old_ino))) goto rename_done; |
old_inode | 1369 | fs/vfat/namei.c | is_dir = S_ISDIR(old_inode->i_mode); |
old_inode | 1459 | fs/vfat/namei.c | MSDOS_I(old_inode)->i_busy = 1; |
old_inode | 1460 | fs/vfat/namei.c | fat_cache_inval_inode(old_inode); |
old_inode | 1462 | fs/vfat/namei.c | old_inode->i_dirt = 1; |
old_inode | 1487 | fs/vfat/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
old_inode | 1488 | fs/vfat/namei.c | if ((res = fat_scan(old_inode,MSDOS_DOTDOT,&dotdot_bh, |
old_inode | 1490 | fs/vfat/namei.c | if (!(dotdot_inode = iget(old_inode->i_sb,dotdot_ino))) { |
old_inode | 1513 | fs/vfat/namei.c | if (old_inode) iput(old_inode); |
old_inode | 677 | fs/xiafs/namei.c | static int subdir(struct inode * new_inode, struct inode * old_inode) |
old_inode | 685 | fs/xiafs/namei.c | if (new_inode == old_inode) { |
old_inode | 689 | fs/xiafs/namei.c | if (new_inode->i_dev != old_inode->i_dev) |
old_inode | 718 | fs/xiafs/namei.c | struct inode * old_inode, * new_inode; |
old_inode | 724 | fs/xiafs/namei.c | old_inode = new_inode = NULL; |
old_inode | 730 | fs/xiafs/namei.c | old_inode = __iget(old_dir->i_sb, old_de->d_ino, 0); /* don't cross mnt-points */ |
old_inode | 731 | fs/xiafs/namei.c | if (!old_inode) |
old_inode | 735 | fs/xiafs/namei.c | current->fsuid != old_inode->i_uid && |
old_inode | 746 | fs/xiafs/namei.c | if (new_inode == old_inode) { |
old_inode | 759 | fs/xiafs/namei.c | if (S_ISDIR(old_inode->i_mode)) { |
old_inode | 763 | fs/xiafs/namei.c | if ((retval = permission(old_inode, MAY_WRITE)) != 0) |
old_inode | 766 | fs/xiafs/namei.c | if (subdir(new_dir, old_inode)) |
old_inode | 769 | fs/xiafs/namei.c | dir_bh = xiafs_bread(old_inode,0,0); |
old_inode | 786 | fs/xiafs/namei.c | || (old_de->d_ino != old_inode->i_ino)) { |
old_inode | 791 | fs/xiafs/namei.c | iput(old_inode); |
old_inode | 798 | fs/xiafs/namei.c | new_de->d_ino = old_inode->i_ino; |
old_inode | 818 | fs/xiafs/namei.c | iput(old_inode); |