]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/huge_memory.c: use new hashtable implementation
authorSasha Levin <sasha.levin@oracle.com>
Wed, 20 Feb 2013 02:14:03 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:22 +0000 (16:52 +1100)
commit2d4bab498f5843ea834380264749c73ead6a65e9
tree4da60bda37428301b8d905fa776e7d37dcb812e3
parent90e6cd7931101aa3b79873386a77fb7483ac096b
mm/huge_memory.c: use new hashtable implementation

Switch hugemem to use the new hashtable implementation.  This reduces the
amount of generic unrelated code in the hugemem.

This also removes the dymanic allocation of the hash table.  The upside is
that we save a pointer dereference when accessing the hashtable, but we
lose 8KB if CONFIG_TRANSPARENT_HUGEPAGE is enabled but the processor
doesn't support hugepages.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Cc: David Rientjes <rientjes@google.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c