diff options
Diffstat (limited to 'kernel/acct.c')
-rw-r--r-- | kernel/acct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/acct.c b/kernel/acct.c index c0f447eae..63ee87150 100644 --- a/kernel/acct.c +++ b/kernel/acct.c @@ -276,7 +276,7 @@ static int do_acct_process(long exitcode, struct file *file) */ if (!file) return 0; - file->f_count++; + atomic_inc(&file->f_count); if (!check_free_space(file)) { fput(file); return 0; |