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 5118860..8777372 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) {