taglinefilesource code
new_inode723fs/ext/namei.cstatic int subdir(struct inode * new_inode, struct inode * old_inode)
new_inode728fs/ext/namei.cnew_inode->i_count++;
new_inode731fs/ext/namei.cif (new_inode == old_inode) {
new_inode735fs/ext/namei.cif (new_inode->i_dev != old_inode->i_dev)
new_inode737fs/ext/namei.cino = new_inode->i_ino;
new_inode738fs/ext/namei.cif (ext_lookup(new_inode,"..",2,&new_inode))
new_inode740fs/ext/namei.cif (new_inode->i_ino == ino)
new_inode743fs/ext/namei.ciput(new_inode);
new_inode768fs/ext/namei.cstruct inode * old_inode, * new_inode;
new_inode779fs/ext/namei.ciput(new_inode);
new_inode783fs/ext/namei.cold_inode = new_inode = NULL;
new_inode799fs/ext/namei.cnew_inode = __iget(new_dir->i_sb, new_de->inode,0); /* don't cross mnt-points */
new_inode800fs/ext/namei.cif (!new_inode) {
new_inode805fs/ext/namei.cif (new_inode == old_inode) {
new_inode809fs/ext/namei.cif (new_inode && S_ISDIR(new_inode->i_mode)) {
new_inode814fs/ext/namei.cif (new_inode && (new_dir->i_mode & S_ISVTX) && 
new_inode815fs/ext/namei.ccurrent->fsuid != new_inode->i_uid &&
new_inode841fs/ext/namei.cif (new_inode && (new_de->inode != new_inode->i_ino))
new_inode843fs/ext/namei.cif (new_de->inode && !new_inode)
new_inode852fs/ext/namei.cif (new_inode) {
new_inode853fs/ext/namei.cnew_inode->i_nlink--;
new_inode854fs/ext/namei.cnew_inode->i_dirt = 1;
new_inode872fs/ext/namei.ciput(new_inode);
new_inode872fs/ext2/namei.cstatic int subdir (struct inode * new_inode, struct inode * old_inode)
new_inode877fs/ext2/namei.cnew_inode->i_count++;
new_inode880fs/ext2/namei.cif (new_inode == old_inode) {
new_inode884fs/ext2/namei.cif (new_inode->i_dev != old_inode->i_dev)
new_inode886fs/ext2/namei.cino = new_inode->i_ino;
new_inode887fs/ext2/namei.cif (ext2_lookup (new_inode, "..", 2, &new_inode))
new_inode889fs/ext2/namei.cif (new_inode->i_ino == ino)
new_inode892fs/ext2/namei.ciput (new_inode);
new_inode919fs/ext2/namei.cstruct inode * old_inode, * new_inode;
new_inode932fs/ext2/namei.ciput (new_inode);
new_inode936fs/ext2/namei.cold_inode = new_inode = NULL;
new_inode955fs/ext2/namei.cnew_inode = __iget (new_dir->i_sb, new_de->inode, 0); /* no mntp cross */
new_inode956fs/ext2/namei.cif (!new_inode) {
new_inode961fs/ext2/namei.cif (new_inode == old_inode) {
new_inode965fs/ext2/namei.cif (new_inode && S_ISDIR(new_inode->i_mode)) {
new_inode973fs/ext2/namei.cif (!empty_dir (new_inode))
new_inode976fs/ext2/namei.cif (new_inode->i_count > 1)
new_inode980fs/ext2/namei.cif (new_inode && (new_dir->i_mode & S_ISVTX) &&
new_inode981fs/ext2/namei.ccurrent->fsuid != new_inode->i_uid &&
new_inode986fs/ext2/namei.cif (new_inode && !S_ISDIR(new_inode->i_mode))
new_inode997fs/ext2/namei.cif (!new_inode && new_dir->i_nlink >= EXT2_LINK_MAX)
new_inode1008fs/ext2/namei.cif (new_inode && (new_de->inode != new_inode->i_ino))
new_inode1010fs/ext2/namei.cif (new_de->inode && !new_inode)
new_inode1026fs/ext2/namei.cif (new_inode) {
new_inode1027fs/ext2/namei.cnew_inode->i_nlink--;
new_inode1028fs/ext2/namei.cnew_inode->i_ctime = CURRENT_TIME;
new_inode1029fs/ext2/namei.cnew_inode->i_dirt = 1;
new_inode1039fs/ext2/namei.cif (new_inode) {
new_inode1040fs/ext2/namei.cnew_inode->i_nlink--;
new_inode1041fs/ext2/namei.cnew_inode->i_dirt = 1;
new_inode1063fs/ext2/namei.ciput (new_inode);
new_inode635fs/minix/namei.cstatic int subdir(struct inode * new_inode, struct inode * old_inode)
new_inode640fs/minix/namei.cnew_inode->i_count++;
new_inode643fs/minix/namei.cif (new_inode == old_inode) {
new_inode647fs/minix/namei.cif (new_inode->i_dev != old_inode->i_dev)
new_inode649fs/minix/namei.cino = new_inode->i_ino;
new_inode650fs/minix/namei.cif (minix_lookup(new_inode,"..",2,&new_inode))
new_inode652fs/minix/namei.cif (new_inode->i_ino == ino)
new_inode655fs/minix/namei.ciput(new_inode);
new_inode675fs/minix/namei.cstruct inode * old_inode, * new_inode;
new_inode688fs/minix/namei.ciput(new_inode);
new_inode692fs/minix/namei.cold_inode = new_inode = NULL;
new_inode708fs/minix/namei.cnew_inode = __iget(new_dir->i_sb, new_de->inode, 0);
new_inode709fs/minix/namei.cif (!new_inode) {
new_inode714fs/minix/namei.cif (new_inode == old_inode) {
new_inode718fs/minix/namei.cif (new_inode && S_ISDIR(new_inode->i_mode)) {
new_inode726fs/minix/namei.cif (!empty_dir(new_inode))
new_inode729fs/minix/namei.cif (new_inode->i_count > 1)
new_inode733fs/minix/namei.cif (new_inode && (new_dir->i_mode & S_ISVTX) && 
new_inode734fs/minix/namei.ccurrent->fsuid != new_inode->i_uid &&
new_inode739fs/minix/namei.cif (new_inode && !S_ISDIR(new_inode->i_mode))
new_inode751fs/minix/namei.cif (!new_inode && new_dir->i_nlink >= MINIX_LINK_MAX)
new_inode760fs/minix/namei.cif (new_inode && (new_de->inode != new_inode->i_ino))
new_inode762fs/minix/namei.cif (new_de->inode && !new_inode)
new_inode773fs/minix/namei.cif (new_inode) {
new_inode774fs/minix/namei.cnew_inode->i_nlink--;
new_inode775fs/minix/namei.cnew_inode->i_ctime = CURRENT_TIME;
new_inode776fs/minix/namei.cnew_inode->i_dirt = 1;
new_inode785fs/minix/namei.cif (new_inode) {
new_inode786fs/minix/namei.cnew_inode->i_nlink--;
new_inode787fs/minix/namei.cnew_inode->i_dirt = 1;
new_inode799fs/minix/namei.ciput(new_inode);
new_inode418fs/msdos/namei.cstruct inode *new_inode,*old_inode;
new_inode428fs/msdos/namei.cif (!(new_inode = iget(new_dir->i_sb,new_ino))) {
new_inode432fs/msdos/namei.cerror = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ?
new_inode433fs/msdos/namei.cmsdos_empty(new_inode) : -EPERM : (old_de->attr & ATTR_DIR)
new_inode436fs/msdos/namei.ciput(new_inode);
new_inode440fs/msdos/namei.cif (S_ISDIR(new_inode->i_mode)) {
new_inode444fs/msdos/namei.cnew_inode->i_nlink = 0;
new_inode445fs/msdos/namei.cMSDOS_I(new_inode)->i_busy = 1;
new_inode446fs/msdos/namei.cnew_inode->i_dirt = 1;
new_inode449fs/msdos/namei.ciput(new_inode);
new_inode469fs/msdos/namei.cstruct inode *old_inode,*new_inode,*free_inode,*dotdot_inode,*walk;
new_inode502fs/msdos/namei.cnew_inode = NULL; /* to make GCC happy */
new_inode504fs/msdos/namei.cif (!(new_inode = iget(new_dir->i_sb,new_ino))) {
new_inode509fs/msdos/namei.cerror = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ?
new_inode510fs/msdos/namei.cmsdos_empty(new_inode) : -EPERM : (old_de->attr & ATTR_DIR)
new_inode513fs/msdos/namei.ciput(new_inode);
new_inode518fs/msdos/namei.cnew_inode->i_nlink = 0;
new_inode519fs/msdos/namei.cMSDOS_I(new_inode)->i_busy = 1;
new_inode520fs/msdos/namei.cnew_inode->i_dirt = 1;
new_inode531fs/msdos/namei.ciput(new_inode);
new_inode536fs/msdos/namei.cif (exists && S_ISDIR(new_inode->i_mode)) {
new_inode549fs/msdos/namei.cMSDOS_I(new_inode)->i_depend = free_inode;
new_inode550fs/msdos/namei.cMSDOS_I(free_inode)->i_old = new_inode;
new_inode552fs/msdos/namei.ciput(new_inode);
new_inode644fs/sysv/namei.cstatic int subdir(struct inode * new_inode, struct inode * old_inode)
new_inode649fs/sysv/namei.cnew_inode->i_count++;
new_inode652fs/sysv/namei.cif (new_inode == old_inode) {
new_inode656fs/sysv/namei.cif (new_inode->i_dev != old_inode->i_dev)
new_inode658fs/sysv/namei.cino = new_inode->i_ino;
new_inode659fs/sysv/namei.cif (sysv_lookup(new_inode,"..",2,&new_inode))
new_inode661fs/sysv/namei.cif (new_inode->i_ino == ino) /* root dir reached ? */
new_inode664fs/sysv/namei.ciput(new_inode);
new_inode684fs/sysv/namei.cstruct inode * old_inode, * new_inode;
new_inode696fs/sysv/namei.ciput(new_inode);
new_inode700fs/sysv/namei.cold_inode = new_inode = NULL;
new_inode716fs/sysv/namei.cnew_inode = __iget(new_dir->i_sb, new_de->inode, 0);
new_inode717fs/sysv/namei.cif (!new_inode) {
new_inode722fs/sysv/namei.cif (new_inode == old_inode) {
new_inode726fs/sysv/namei.cif (new_inode && S_ISDIR(new_inode->i_mode)) {
new_inode734fs/sysv/namei.cif (!empty_dir(new_inode))
new_inode737fs/sysv/namei.cif (new_inode->i_count > 1)
new_inode741fs/sysv/namei.cif (new_inode && (new_dir->i_mode & S_ISVTX) && 
new_inode742fs/sysv/namei.ccurrent->fsuid != new_inode->i_uid &&
new_inode747fs/sysv/namei.cif (new_inode && !S_ISDIR(new_inode->i_mode))
new_inode759fs/sysv/namei.cif (!new_inode && new_dir->i_nlink >= new_dir->i_sb->sv_link_max)
new_inode768fs/sysv/namei.cif (new_inode && (new_de->inode != new_inode->i_ino))
new_inode770fs/sysv/namei.cif (new_de->inode && !new_inode)
new_inode781fs/sysv/namei.cif (new_inode) {
new_inode782fs/sysv/namei.cnew_inode->i_nlink--;
new_inode783fs/sysv/namei.cnew_inode->i_ctime = CURRENT_TIME;
new_inode784fs/sysv/namei.cnew_inode->i_dirt = 1;
new_inode793fs/sysv/namei.cif (new_inode) {
new_inode794fs/sysv/namei.cnew_inode->i_nlink--;
new_inode795fs/sysv/namei.cnew_inode->i_dirt = 1;
new_inode807fs/sysv/namei.ciput(new_inode);
new_inode675fs/xiafs/namei.cstatic int subdir(struct inode * new_inode, struct inode * old_inode)
new_inode680fs/xiafs/namei.cnew_inode->i_count++;
new_inode683fs/xiafs/namei.cif (new_inode == old_inode) {
new_inode687fs/xiafs/namei.cif (new_inode->i_dev != old_inode->i_dev)
new_inode689fs/xiafs/namei.cino = new_inode->i_ino;
new_inode690fs/xiafs/namei.cif (xiafs_lookup(new_inode,"..",2,&new_inode))
new_inode692fs/xiafs/namei.cif (new_inode->i_ino == ino)
new_inode695fs/xiafs/namei.ciput(new_inode);
new_inode716fs/xiafs/namei.cstruct inode * old_inode, * new_inode;
new_inode722fs/xiafs/namei.cold_inode = new_inode = NULL;
new_inode738fs/xiafs/namei.cnew_inode = __iget(new_dir->i_sb, new_de->d_ino, 0);
new_inode739fs/xiafs/namei.cif (!new_inode) {
new_inode744fs/xiafs/namei.cif (new_inode == old_inode) {
new_inode748fs/xiafs/namei.cif (new_inode && S_ISDIR(new_inode->i_mode)) {
new_inode753fs/xiafs/namei.cif (new_inode && (new_dir->i_mode & S_ISVTX) && 
new_inode754fs/xiafs/namei.ccurrent->fsuid != new_inode->i_uid &&
new_inode783fs/xiafs/namei.cif ( (new_inode && (new_de->d_ino != new_inode->i_ino))
new_inode784fs/xiafs/namei.c|| (new_de->d_ino && !new_inode)
new_inode791fs/xiafs/namei.ciput(new_inode);
new_inode798fs/xiafs/namei.cif (new_inode) {
new_inode799fs/xiafs/namei.cnew_inode->i_nlink--;
new_inode800fs/xiafs/namei.cnew_inode->i_dirt = 1;
new_inode818fs/xiafs/namei.ciput(new_inode);