Commit 795a2f22 authored by Al Viro's avatar Al Viro

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e25ff11f
...@@ -180,8 +180,8 @@ static void acct_file_reopen(struct bsd_acct_struct *acct, struct file *file, ...@@ -180,8 +180,8 @@ static void acct_file_reopen(struct bsd_acct_struct *acct, struct file *file,
if (file) { if (file) {
acct->file = file; acct->file = file;
acct->ns = ns; acct->ns = ns;
acct->needcheck = jiffies + ACCT_TIMEOUT*HZ; acct->needcheck = jiffies;
acct->active = 1; acct->active = 0;
list_add(&acct->list, &acct_list); list_add(&acct->list, &acct_list);
} }
if (old_acct) { if (old_acct) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment