patch-2.3.9 linux/kernel/acct.c

Next file: linux/kernel/fork.c
Previous file: linux/ipc/shm.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.8/linux/kernel/acct.c linux/kernel/acct.c
@@ -276,7 +276,7 @@
 	 */
 	if (!file)
 		return 0;
-	file->f_count++;
+	atomic_inc(&file->f_count);
 	if (!check_free_space(file)) {
 		fput(file);
 		return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)