]> Git Repo - linux.git/commit
mm: warn if pg_data_t isn't initialized with zero
authorMinchan Kim <[email protected]>
Tue, 31 Jul 2012 23:46:14 +0000 (16:46 -0700)
committerLinus Torvalds <[email protected]>
Wed, 1 Aug 2012 01:42:50 +0000 (18:42 -0700)
commit88fdf75d1bb51d85ba00c466391770056d44bc03
tree0b4f6d9b9c0fb39fd03199c6b19ae626608b2fbb
parent93180cec0064d072a984f91c429c5e6bcc816976
mm: warn if pg_data_t isn't initialized with zero

Warn if memory-hotplug/boot code doesn't initialize pg_data_t with zero
when it is allocated.  Arch code and memory hotplug already initiailize
pg_data_t.  So this warning should never happen.  I select fields randomly
near the beginning, middle and end of pg_data_t for checking.

This patch isn't for performance but for removing initialization code
which is necessary to add whenever we adds new field to pg_data_t or zone.

Firstly, Andrew suggested clearing out of pg_data_t in MM core part but
Tejun doesn't like it because in the future, some archs can initialize
some fields in arch code and pass them into general MM part so blindly
clearing it out in mm core part would be very annoying.

Signed-off-by: Minchan Kim <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Ralf Baechle <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/page_alloc.c
This page took 0.054699 seconds and 4 git commands to generate.