patch-2.1.47 linux/fs/minix/namei.c

Next file: linux/fs/msdos/namei.c
Previous file: linux/fs/minix/file.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.46/linux/fs/minix/namei.c linux/fs/minix/namei.c
@@ -109,7 +109,7 @@
 
 	bh = minix_find_entry(dir, dentry->d_name.name, dentry->d_name.len, &de);
 	if (bh) {
-		unsigned long ino = le32_to_cpu(de->inode);
+		int ino = de->inode;
 		brelse (bh);
 		inode = iget(dir->i_sb, ino);
  
@@ -593,6 +593,7 @@
 	inode->i_nlink++;
 	inode->i_ctime = CURRENT_TIME;
 	mark_inode_dirty(inode);
+	inode->i_count++;
 	d_instantiate(dentry, inode);
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov