]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad02e1a7c0cab2ee30f8c2801039ecb5e2a419e0
tree9536ad8334979e6ed9a188fd993afd4b307bc45c
parentb61ea38213c63126ea742bd1e6f798cd8f375c1f
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