On Fri, May 07, 2010 at 09:00:16AM -0700, Curt Wohlgemuth wrote: > This adds a new field in ext4_group_info to cache the largest available > block range in a block group; and don't load the buddy pages until *after* > we've done a sanity check on the block group. > > With large allocation requests (e.g., fallocate(), 8MiB) and relatively full > partitions, it's easy to have no block groups with a block extent large > enough to satisfy the input request length. This currently causes the loop > during cr == 0 in ext4_mb_regular_allocator() to load the buddy bitmap pages > for EVERY block group. That can be a lot of pages. The patch below allows > us to call ext4_mb_good_group() BEFORE we load the buddy pages. > >Signed-off-by: Curt Wohlgemuth <curtw@xxxxxxxxxx> Added to the ext4 patch queue. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html