ext4: don't increment s_mb_buddies_generated in ext4_mb_release
authorTao Ma <[email protected]>
Sat, 23 Jul 2011 20:18:05 +0000 (16:18 -0400)
committerTheodore Ts'o <[email protected]>
Sat, 23 Jul 2011 20:18:05 +0000 (16:18 -0400)
In ext4_mb_release, we use s_mb_buddies_generated++.  Although
the output is OK, but I don't think we need this extra ++.

Signed-off-by: Tao Ma <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
fs/ext4/mballoc.c

index 447c0f3384ab8f880d555863167fcd1aa6e97c16..e16583032b6b17342b9ebfac34c13975ce21c2f9 100644 (file)
@@ -2581,7 +2581,7 @@ int ext4_mb_release(struct super_block *sb)
                                atomic_read(&sbi->s_mb_lost_chunks));
                printk(KERN_INFO
                       "EXT4-fs: mballoc: %lu generated and it took %Lu\n",
-                               sbi->s_mb_buddies_generated++,
+                               sbi->s_mb_buddies_generated,
                                sbi->s_mb_generation_time);
                printk(KERN_INFO
                       "EXT4-fs: mballoc: %u preallocated, %u discarded\n",