projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e25ff11
)
acct() should honour the limits from the very beginning
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 7 May 2014 09:23:41 +0000
(
05:23
-0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 7 Aug 2014 18:40:07 +0000
(14:40 -0400)
We need to check free space on the first write to freshly opened log.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/acct.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/acct.c
b/kernel/acct.c
index 51188603b2588dd25fd0d8db6b6618648e075c20..87773725a0dcd69d6e2585072c47a0be917f935a 100644
(file)
--- 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) {