Whamcloud - gitweb
libext2fs: teach ext2fs_block_alloc_stats2() about bigalloc
authorTheodore Ts'o <tytso@mit.edu>
Thu, 7 Jul 2011 17:54:39 +0000 (13:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 7 Jul 2011 18:21:12 +0000 (14:21 -0400)
commitb98d3e8fadf32cc34b8231089a4da0a225697545
tree09d436206b6fcadc103a258dca7f86a6a9d9f32c
parentc4d2d43e2dc831d5c209af3e42dffd7b5e65c1f6
libext2fs: teach ext2fs_block_alloc_stats2() about bigalloc

Change ext2fs_block_alloc_stats2() so that when a cluster is
allocated, the free blocks counter in the superblock is appropriately
decremented by the cluster size.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/alloc_stats.c