patch-2.1.44 linux/kernel/fork.c

Next file: linux/kernel/ksyms.c
Previous file: linux/kernel/exit.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.43/linux/kernel/fork.c linux/kernel/fork.c
@@ -302,10 +302,8 @@
 		return -1;
 	tsk->fs->count = 1;
 	tsk->fs->umask = current->fs->umask;
-	if ((tsk->fs->root = current->fs->root))
-		atomic_inc(&tsk->fs->root->i_count);
-	if ((tsk->fs->pwd = current->fs->pwd))
-		atomic_inc(&tsk->fs->pwd->i_count);
+	tsk->fs->root = dget(current->fs->root);
+	tsk->fs->pwd = dget(current->fs->pwd);
 	return 0;
 }
 

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