aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext2/ialloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext2/ialloc.c')
-rw-r--r--fs/ext2/ialloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c
index 2cb545bf0f3c..4a9746b9afb7 100644
--- a/fs/ext2/ialloc.c
+++ b/fs/ext2/ialloc.c
@@ -542,7 +542,7 @@ got:
542 goto fail; 542 goto fail;
543 } 543 }
544 544
545 percpu_counter_mod(&sbi->s_freeinodes_counter, -1); 545 percpu_counter_add(&sbi->s_freeinodes_counter, -1);
546 if (S_ISDIR(mode)) 546 if (S_ISDIR(mode))
547 percpu_counter_inc(&sbi->s_dirs_counter); 547 percpu_counter_inc(&sbi->s_dirs_counter);
548 548