Commit
795a2f22a8eaf749e20a11271a8821bf04ac6d90
Exists in
smarc_imx_lf-5.15.y
and in
32 other branches
8mp-imx_5.4.70_2.3.0, 8qm-imx_5.4.70_2.3.0, emb_imx_lf-5.15.y, emb_lf-6.1.y, imx_4.1.15_1.0.0_ga, pitx_8mp_lf-5.10.y, rt-smarc-imx_4.1.15_1.0.0_ga, rt_linux_5.15.71, smarc-8m-android-11.0.0_2.0.0, smarc-imx6_4.14.98_2.0.0_ga, smarc-imx6_4.9.88_2.0.0_ga, smarc-imx7_4.14.98_2.0.0_ga, smarc-imx7_4.9.11_1.0.0_ga, smarc-imx7_4.9.88_2.0.0_ga, smarc-imx_4.1.15_1.0.0_ga, smarc-imx_4.9.11_1.0.0_ga, smarc-imx_4.9.51_imx8m_ga, smarc-imx_4.9.88_2.0.0_ga, smarc-m6.0.1_2.1.0-ga, smarc-n7.1.2_2.0.0-ga, smarc-rel_imx_4.1.15_1.2.0_ga, smarc_8m_00d0_imx_4.14.98_2.0.0_ga, smarc_8m_imx_4.14.78_1.0.0_ga, smarc_8m_imx_4.14.98_2.0.0_ga, smarc_8m_imx_4.19.35_1.1.0, smarc_8mm_imx_4.14.78_1.0.0_ga, smarc_8mm_imx_4.14.98_2.0.0_ga, smarc_8mm_imx_4.19.35_1.1.0, smarc_8mm_imx_5.4.24_2.1.0, smarc_8mp_lf-5.10.y, smarc_8mq_imx_5.4.24_2.1.0, smarc_8mq_lf-5.10.y
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) { |