acct() should honour the limits from the very beginning
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 7 May 2014 09:23:41 +0000 (05:23 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 7 Aug 2014 18:40:07 +0000 (14:40 -0400)
We need to check free space on the first write to freshly opened log.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/acct.c

index 51188603b2588dd25fd0d8db6b6618648e075c20..87773725a0dcd69d6e2585072c47a0be917f935a 100644 (file)
@@ -180,8 +180,8 @@ static void acct_file_reopen(struct bsd_acct_struct *acct, struct file *file,
        if (file) {
                acct->file = file;
                acct->ns = ns;
-               acct->needcheck = jiffies + ACCT_TIMEOUT*HZ;
-               acct->active = 1;
+               acct->needcheck = jiffies;
+               acct->active = 0;
                list_add(&acct->list, &acct_list);
        }
        if (old_acct) {