patch-2.1.60 linux/kernel/sys.c

Next file: linux/kernel/sysctl.c
Previous file: linux/kernel/module.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.59/linux/kernel/sys.c linux/kernel/sys.c
@@ -358,8 +358,8 @@
       fs = get_fs();
       set_fs(KERNEL_DS);
 
-      acct_file.f_op->write(acct_file.f_dentry->d_inode, &acct_file,
-                             (char *)&ac, sizeof(struct acct));
+      acct_file.f_op->write(&acct_file, (char *)&ac, sizeof(struct acct),
+			    &acct_file.f_pos);
       set_fs(fs);
    }
    return 0;

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