Skip to content

Commit

Permalink
acct() should honour the limits from the very beginning
Browse files Browse the repository at this point in the history
We need to check free space on the first write to freshly opened log.

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Aug 7, 2014
1 parent e25ff11 commit 795a2f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/acct.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 795a2f2

Please sign in to comment.