Whamcloud - gitweb
Transfer responsibility of setting the *_UNINIT flags to libext2fs
authorTheodore Ts'o <tytso@mit.edu>
Mon, 21 Apr 2008 05:29:01 +0000 (01:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 21 Apr 2008 05:39:23 +0000 (01:39 -0400)
commit5711ed297b1a3d94086256b5b3b891d4f77b21ca
tree428bfb1b88832f0c9fcf95bf12fc610b1a8580b8
parent16b851cdae98244e117fe91d93b267fcad1102b3
Transfer responsibility of setting the *_UNINIT flags to libext2fs

Mke2fs used to have special case, ugly code in
setup_lazy_bg/setup_uninit_bg flag which set the flags based on all
sorts of special cases.  Change it so that it is done in libext2fs,
and fix mke2fs to use alloc_stats functions which will take care of
clearing the *_UNINIT flags automatically as needed.

This is preparatory work to make the flex_bg allocation patch much
cleaner.

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