patch-2.2.14 linux/fs/minix/namei.c
Next file: linux/fs/msdos/namei.c
Previous file: linux/fs/locks.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Tue Jan 4 10:12:23 2000
- Orig file:
v2.2.13/linux/fs/minix/namei.c
- Orig date:
Thu May 13 23:25:58 1999
diff -u --recursive --new-file v2.2.13/linux/fs/minix/namei.c linux/fs/minix/namei.c
@@ -194,7 +194,7 @@
mark_inode_dirty(dir);
for (i = 0; i < info->s_namelen ; i++)
de->name[i] = (i < namelen) ? name[i] : 0;
- dir->i_version = ++event;
+ dir->i_version = ++global_event;
mark_buffer_dirty(bh, 1);
*res_dir = de;
break;
@@ -415,7 +415,7 @@
if (inode->i_nlink != 2)
printk("empty directory has nlink!=2 (%d)\n",inode->i_nlink);
de->inode = 0;
- dir->i_version = ++event;
+ dir->i_version = ++global_event;
mark_buffer_dirty(bh, 1);
inode->i_nlink=0;
mark_inode_dirty(inode);
@@ -449,7 +449,7 @@
inode->i_nlink=1;
}
de->inode = 0;
- dir->i_version = ++event;
+ dir->i_version = ++global_event;
mark_buffer_dirty(bh, 1);
dir->i_ctime = dir->i_mtime = CURRENT_TIME;
mark_inode_dirty(dir);
@@ -601,10 +601,10 @@
new_de->inode = old_inode->i_ino;
old_de->inode = 0;
old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME;
- old_dir->i_version = ++event;
+ old_dir->i_version = ++global_event;
mark_inode_dirty(old_dir);
new_dir->i_ctime = new_dir->i_mtime = CURRENT_TIME;
- new_dir->i_version = ++event;
+ new_dir->i_version = ++global_event;
mark_inode_dirty(new_dir);
if (new_inode) {
new_inode->i_nlink--;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)