Whamcloud - gitweb
e2fsck: Teach new_table_block() to allocate new itables/bitmaps with FLEX_BG
authorTheodore Ts'o <tytso@mit.edu>
Wed, 19 Aug 2009 02:27:42 +0000 (22:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 19 Aug 2009 03:06:30 +0000 (23:06 -0400)
commit617446e4aad5acdc82bad8bb36d896f9ad480cf8
tree54d7b989baa70edc7b458f5a836ddde0613e9b12
parent334cfccbca2a37a3d8db16761fb90431f69e6030
e2fsck: Teach new_table_block() to allocate new itables/bitmaps with FLEX_BG

If the filesystem feature FLEX_BG is enabled, the inode table and
bitmap blocks can be located anywhere in the inode table.  So for
FLEX_BG filesystems, new_table_block() now tries allocate in the block
group's flex_bg first, and if there is no space in the local flex_bg,
then try to allocate from the whole filesystem.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/pass1.c