summaryrefslogtreecommitdiffstats
path: root/kernel/acct.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-05-07 05:23:41 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-08-07 14:40:07 -0400
commit795a2f22a8eaf749e20a11271a8821bf04ac6d90 (patch)
treefdc8104fa5462298120f9c877a9625149ed78ed9 /kernel/acct.c
parente25ff11ff16aba000dfe9e568d867e5142c31f16 (diff)
downloadlinux-0-day-795a2f22a8eaf749e20a11271a8821bf04ac6d90.tar.gz
linux-0-day-795a2f22a8eaf749e20a11271a8821bf04ac6d90.tar.xz
acct() should honour the limits from the very beginning
We need to check free space on the first write to freshly opened log. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/acct.c')
-rw-r--r--kernel/acct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/acct.c b/kernel/acct.c
index 51188603b2588..87773725a0dcd 100644
--- a/kernel/acct.c
+++ b/kernel/acct.c
@@ -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) {