]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mm: make compound page destructor handling explicit
authorAndy Whitcroft <apw@shadowen.org>
Thu, 7 Dec 2006 04:33:32 +0000 (20:33 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:25 +0000 (08:39 -0800)
commit489bd174aa7051c80e9ad3d3936d6ded59374ae3
treeb90eac24ff367bc628c44eaa51a9f0ea1b69d1a4
parentbffb06ba92a4fd00930e2ee3cb64d42a2424bcb0
[PATCH] mm: make compound page destructor handling explicit

Currently we we use the lru head link of the second page of a compound page
to hold its destructor.  This was ok when it was purely an internal
implmentation detail.  However, hugetlbfs overrides this destructor
violating the layering.  Abstract this out as explicit calls, also
introduce a type for the callback function allowing them to be type
checked.  For each callback we pre-declare the function, causing a type
error on definition rather than on use elsewhere.

[akpm@osdl.org: cleanups]
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/mm.h
mm/hugetlb.c
mm/page_alloc.c
mm/swap.c