ext4: teach ext4_mb_init_cache() to skip uptodate buddy caches
authorAmir Goldstein <amir73il@users.sf.net>
Tue, 10 May 2011 01:49:42 +0000 (21:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 10 May 2011 01:49:42 +0000 (21:49 -0400)
commit9b8b7d353f5f9bea758398c3af679ffa105e5cfe
tree9536ad8334979e6ed9a188fd993afd4b307bc45c
parent2de8807b25de6d24476923121e3b20146fe8216b
ext4: teach ext4_mb_init_cache() to skip uptodate buddy caches

After online resize which adds new groups, some of the groups
in a buddy page may be initialized and uptodate, while other
(new ones) may be uninitialized.

The indication for init of new block groups is when ext4_mb_init_cache()
is called with an uptodate buddy page. In this case, initialized groups
on that buddy page must be skipped when initializing the buddy cache.

Signed-off-by: Amir Goldstein <amir73il@users.sf.net>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c