projects
/
platform
/
kernel
/
linux-exynos.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
|
history
diff --git
a/kernel/acct.c
b/kernel/acct.c
index
5118860
..
8777372
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) {