Commit 795a2f22a8eaf749e20a11271a8821bf04ac6d90

Authored by Al Viro
1 parent e25ff11ff1

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -180,8 +180,8 @@
180 180 if (file) {
181 181 acct->file = file;
182 182 acct->ns = ns;
183   - acct->needcheck = jiffies + ACCT_TIMEOUT*HZ;
184   - acct->active = 1;
  183 + acct->needcheck = jiffies;
  184 + acct->active = 0;
185 185 list_add(&acct->list, &acct_list);
186 186 }
187 187 if (old_acct) {