Whamcloud - gitweb
libext2fs: Fix counting routines in blknum.c to take/return __u32 counts
authorNick Dokos <nicholas.dokos@hp.com>
Tue, 8 Sep 2009 01:13:59 +0000 (21:13 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 8 Sep 2009 01:13:59 +0000 (21:13 -0400)
commitd62d218f118863322742093ceb938bcac6093f80
tree3e78114568f72a3ca148d42d3faeadb52c7b213d
parentdc615a21c3c43cd9071926df2633d5b23e2e726b
libext2fs: Fix counting routines in blknum.c to take/return __u32 counts

Several routines in lib/ext2fs/blknum.c:

        ext2fs_bg_free_blocks_count()
        ext2fs_bg_free_inodes_count()
        ext2fs_bg_used_dirs_count()
        ext2fs_bg_itable_unused()

and their _set() counterparts, operate as if they are dealing with
blk64_t quantities, but they should be dealing with __u32 counts
instead.

Signed-off-by: Nick Dokos <nicholas.dokos@hp.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/blknum.c
lib/ext2fs/ext2fs.h