mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
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 <[email protected]>
This commit is contained in:
1 parent
e25ff11ff1
commit
795a2f22a8
1 file changed
+2
-2
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user