taglinefilesource code
new_inode721fs/ext/namei.cstatic int subdir(struct inode * new_inode, struct inode * old_inode)
new_inode726fs/ext/namei.cnew_inode->i_count++;
new_inode729fs/ext/namei.cif (new_inode == old_inode) {
new_inode733fs/ext/namei.cif (new_inode->i_dev != old_inode->i_dev)
new_inode735fs/ext/namei.cino = new_inode->i_ino;
new_inode736fs/ext/namei.cif (ext_lookup(new_inode,"..",2,&new_inode))
new_inode738fs/ext/namei.cif (new_inode->i_ino == ino)
new_inode741fs/ext/namei.ciput(new_inode);
new_inode766fs/ext/namei.cstruct inode * old_inode, * new_inode;
new_inode777fs/ext/namei.ciput(new_inode);
new_inode781fs/ext/namei.cold_inode = new_inode = NULL;
new_inode797fs/ext/namei.cnew_inode = __iget(new_dir->i_sb, new_de->inode,0); /* don't cross mnt-points */
new_inode798fs/ext/namei.cif (!new_inode) {
new_inode803fs/ext/namei.cif (new_inode == old_inode) {
new_inode807fs/ext/namei.cif (new_inode && S_ISDIR(new_inode->i_mode)) {
new_inode812fs/ext/namei.cif (new_inode && (new_dir->i_mode & S_ISVTX) && 
new_inode813fs/ext/namei.ccurrent->euid != new_inode->i_uid &&
new_inode839fs/ext/namei.cif (new_inode && (new_de->inode != new_inode->i_ino))
new_inode841fs/ext/namei.cif (new_de->inode && !new_inode)
new_inode850fs/ext/namei.cif (new_inode) {
new_inode851fs/ext/namei.cnew_inode->i_nlink--;
new_inode852fs/ext/namei.cnew_inode->i_dirt = 1;
new_inode870fs/ext/namei.ciput(new_inode);
new_inode897fs/ext2/namei.cstatic int subdir (struct inode * new_inode, struct inode * old_inode)
new_inode902fs/ext2/namei.cnew_inode->i_count++;
new_inode905fs/ext2/namei.cif (new_inode == old_inode) {
new_inode909fs/ext2/namei.cif (new_inode->i_dev != old_inode->i_dev)
new_inode911fs/ext2/namei.cino = new_inode->i_ino;
new_inode912fs/ext2/namei.cif (ext2_lookup (new_inode, "..", 2, &new_inode))
new_inode914fs/ext2/namei.cif (new_inode->i_ino == ino)
new_inode917fs/ext2/namei.ciput (new_inode);
new_inode944fs/ext2/namei.cstruct inode * old_inode, * new_inode;
new_inode957fs/ext2/namei.ciput (new_inode);
new_inode961fs/ext2/namei.cold_inode = new_inode = NULL;
new_inode978fs/ext2/namei.cnew_inode = __iget (new_dir->i_sb, new_de->inode, 0); /* no mntp cross */
new_inode979fs/ext2/namei.cif (!new_inode) {
new_inode984fs/ext2/namei.cif (new_inode == old_inode) {
new_inode988fs/ext2/namei.cif (new_inode && S_ISDIR(new_inode->i_mode)) {
new_inode996fs/ext2/namei.cif (!empty_dir (new_inode))
new_inode999fs/ext2/namei.cif (new_inode->i_count > 1)
new_inode1003fs/ext2/namei.cif (new_inode && (new_dir->i_mode & S_ISVTX) &&
new_inode1004fs/ext2/namei.ccurrent->euid != new_inode->i_uid &&
new_inode1009fs/ext2/namei.cif (new_inode && !S_ISDIR(new_inode->i_mode))
new_inode1020fs/ext2/namei.cif (!new_inode && new_dir->i_nlink >= EXT2_LINK_MAX)
new_inode1031fs/ext2/namei.cif (new_inode && (new_de->inode != new_inode->i_ino))
new_inode1033fs/ext2/namei.cif (new_de->inode && !new_inode)
new_inode1052fs/ext2/namei.cif (new_inode) {
new_inode1053fs/ext2/namei.cnew_inode->i_nlink--;
new_inode1054fs/ext2/namei.cnew_inode->i_ctime = CURRENT_TIME;
new_inode1055fs/ext2/namei.cnew_inode->i_dirt = 1;
new_inode1074fs/ext2/namei.cif (new_inode) {
new_inode1075fs/ext2/namei.cnew_inode->i_nlink--;
new_inode1076fs/ext2/namei.cnew_inode->i_dirt = 1;
new_inode1088fs/ext2/namei.ciput (new_inode);
new_inode634fs/minix/namei.cstatic int subdir(struct inode * new_inode, struct inode * old_inode)
new_inode639fs/minix/namei.cnew_inode->i_count++;
new_inode642fs/minix/namei.cif (new_inode == old_inode) {
new_inode646fs/minix/namei.cif (new_inode->i_dev != old_inode->i_dev)
new_inode648fs/minix/namei.cino = new_inode->i_ino;
new_inode649fs/minix/namei.cif (minix_lookup(new_inode,"..",2,&new_inode))
new_inode651fs/minix/namei.cif (new_inode->i_ino == ino)
new_inode654fs/minix/namei.ciput(new_inode);
new_inode674fs/minix/namei.cstruct inode * old_inode, * new_inode;
new_inode687fs/minix/namei.ciput(new_inode);
new_inode691fs/minix/namei.cold_inode = new_inode = NULL;
new_inode707fs/minix/namei.cnew_inode = __iget(new_dir->i_sb, new_de->inode, 0);
new_inode708fs/minix/namei.cif (!new_inode) {
new_inode713fs/minix/namei.cif (new_inode == old_inode) {
new_inode717fs/minix/namei.cif (new_inode && S_ISDIR(new_inode->i_mode)) {
new_inode725fs/minix/namei.cif (!empty_dir(new_inode))
new_inode728fs/minix/namei.cif (new_inode->i_count > 1)
new_inode732fs/minix/namei.cif (new_inode && (new_dir->i_mode & S_ISVTX) && 
new_inode733fs/minix/namei.ccurrent->euid != new_inode->i_uid &&
new_inode738fs/minix/namei.cif (new_inode && !S_ISDIR(new_inode->i_mode))
new_inode750fs/minix/namei.cif (!new_inode && new_dir->i_nlink >= MINIX_LINK_MAX)
new_inode759fs/minix/namei.cif (new_inode && (new_de->inode != new_inode->i_ino))
new_inode761fs/minix/namei.cif (new_de->inode && !new_inode)
new_inode772fs/minix/namei.cif (new_inode) {
new_inode773fs/minix/namei.cnew_inode->i_nlink--;
new_inode774fs/minix/namei.cnew_inode->i_ctime = CURRENT_TIME;
new_inode775fs/minix/namei.cnew_inode->i_dirt = 1;
new_inode784fs/minix/namei.cif (new_inode) {
new_inode785fs/minix/namei.cnew_inode->i_nlink--;
new_inode786fs/minix/namei.cnew_inode->i_dirt = 1;
new_inode798fs/minix/namei.ciput(new_inode);
new_inode402fs/msdos/namei.cstruct inode *new_inode,*old_inode;
new_inode412fs/msdos/namei.cif (!(new_inode = iget(new_dir->i_sb,new_ino))) {
new_inode416fs/msdos/namei.cerror = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ?
new_inode417fs/msdos/namei.cmsdos_empty(new_inode) : -EPERM : (old_de->attr & ATTR_DIR)
new_inode420fs/msdos/namei.ciput(new_inode);
new_inode424fs/msdos/namei.cif (S_ISDIR(new_inode->i_mode)) {
new_inode428fs/msdos/namei.cnew_inode->i_nlink = 0;
new_inode429fs/msdos/namei.cMSDOS_I(new_inode)->i_busy = 1;
new_inode430fs/msdos/namei.cnew_inode->i_dirt = 1;
new_inode433fs/msdos/namei.ciput(new_inode);
new_inode453fs/msdos/namei.cstruct inode *old_inode,*new_inode,*free_inode,*dotdot_inode,*walk;
new_inode486fs/msdos/namei.cnew_inode = NULL; /* to make GCC happy */
new_inode488fs/msdos/namei.cif (!(new_inode = iget(new_dir->i_sb,new_ino))) {
new_inode493fs/msdos/namei.cerror = S_ISDIR(new_inode->i_mode) ? (old_de->attr & ATTR_DIR) ?
new_inode494fs/msdos/namei.cmsdos_empty(new_inode) : -EPERM : (old_de->attr & ATTR_DIR)
new_inode497fs/msdos/namei.ciput(new_inode);
new_inode502fs/msdos/namei.cnew_inode->i_nlink = 0;
new_inode503fs/msdos/namei.cMSDOS_I(new_inode)->i_busy = 1;
new_inode504fs/msdos/namei.cnew_inode->i_dirt = 1;
new_inode515fs/msdos/namei.ciput(new_inode);
new_inode520fs/msdos/namei.cif (exists && S_ISDIR(new_inode->i_mode)) {
new_inode533fs/msdos/namei.cMSDOS_I(new_inode)->i_depend = free_inode;
new_inode534fs/msdos/namei.cMSDOS_I(free_inode)->i_old = new_inode;
new_inode536fs/msdos/namei.ciput(new_inode);
new_inode643fs/sysv/namei.cstatic int subdir(struct inode * new_inode, struct inode * old_inode)
new_inode648fs/sysv/namei.cnew_inode->i_count++;
new_inode651fs/sysv/namei.cif (new_inode == old_inode) {
new_inode655fs/sysv/namei.cif (new_inode->i_dev != old_inode->i_dev)
new_inode657fs/sysv/namei.cino = new_inode->i_ino;
new_inode658fs/sysv/namei.cif (sysv_lookup(new_inode,"..",2,&new_inode))
new_inode660fs/sysv/namei.cif (new_inode->i_ino == ino) /* root dir reached ? */
new_inode663fs/sysv/namei.ciput(new_inode);
new_inode683fs/sysv/namei.cstruct inode * old_inode, * new_inode;
new_inode695fs/sysv/namei.ciput(new_inode);
new_inode699fs/sysv/namei.cold_inode = new_inode = NULL;
new_inode715fs/sysv/namei.cnew_inode = __iget(new_dir->i_sb, new_de->inode, 0);
new_inode716fs/sysv/namei.cif (!new_inode) {
new_inode721fs/sysv/namei.cif (new_inode == old_inode) {
new_inode725fs/sysv/namei.cif (new_inode && S_ISDIR(new_inode->i_mode)) {
new_inode733fs/sysv/namei.cif (!empty_dir(new_inode))
new_inode736fs/sysv/namei.cif (new_inode->i_count > 1)
new_inode740fs/sysv/namei.cif (new_inode && (new_dir->i_mode & S_ISVTX) && 
new_inode741fs/sysv/namei.ccurrent->euid != new_inode->i_uid &&
new_inode746fs/sysv/namei.cif (new_inode && !S_ISDIR(new_inode->i_mode))
new_inode758fs/sysv/namei.cif (!new_inode && new_dir->i_nlink >= new_dir->i_sb->sv_link_max)
new_inode767fs/sysv/namei.cif (new_inode && (new_de->inode != new_inode->i_ino))
new_inode769fs/sysv/namei.cif (new_de->inode && !new_inode)
new_inode780fs/sysv/namei.cif (new_inode) {
new_inode781fs/sysv/namei.cnew_inode->i_nlink--;
new_inode782fs/sysv/namei.cnew_inode->i_ctime = CURRENT_TIME;
new_inode783fs/sysv/namei.cnew_inode->i_dirt = 1;
new_inode792fs/sysv/namei.cif (new_inode) {
new_inode793fs/sysv/namei.cnew_inode->i_nlink--;
new_inode794fs/sysv/namei.cnew_inode->i_dirt = 1;
new_inode806fs/sysv/namei.ciput(new_inode);
new_inode674fs/xiafs/namei.cstatic int subdir(struct inode * new_inode, struct inode * old_inode)
new_inode679fs/xiafs/namei.cnew_inode->i_count++;
new_inode682fs/xiafs/namei.cif (new_inode == old_inode) {
new_inode686fs/xiafs/namei.cif (new_inode->i_dev != old_inode->i_dev)
new_inode688fs/xiafs/namei.cino = new_inode->i_ino;
new_inode689fs/xiafs/namei.cif (xiafs_lookup(new_inode,"..",2,&new_inode))
new_inode691fs/xiafs/namei.cif (new_inode->i_ino == ino)
new_inode694fs/xiafs/namei.ciput(new_inode);
new_inode715fs/xiafs/namei.cstruct inode * old_inode, * new_inode;
new_inode721fs/xiafs/namei.cold_inode = new_inode = NULL;
new_inode737fs/xiafs/namei.cnew_inode = __iget(new_dir->i_sb, new_de->d_ino, 0);
new_inode738fs/xiafs/namei.cif (!new_inode) {
new_inode743fs/xiafs/namei.cif (new_inode == old_inode) {
new_inode747fs/xiafs/namei.cif (new_inode && S_ISDIR(new_inode->i_mode)) {
new_inode752fs/xiafs/namei.cif (new_inode && (new_dir->i_mode & S_ISVTX) && 
new_inode753fs/xiafs/namei.ccurrent->euid != new_inode->i_uid &&
new_inode782fs/xiafs/namei.cif ( (new_inode && (new_de->d_ino != new_inode->i_ino))
new_inode783fs/xiafs/namei.c|| (new_de->d_ino && !new_inode)
new_inode790fs/xiafs/namei.ciput(new_inode);
new_inode797fs/xiafs/namei.cif (new_inode) {
new_inode798fs/xiafs/namei.cnew_inode->i_nlink--;
new_inode799fs/xiafs/namei.cnew_inode->i_dirt = 1;
new_inode817fs/xiafs/namei.ciput(new_inode);