]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/huge_memory.c: use new hashtable implementation
authorSasha Levin <sasha.levin@oracle.com>
Thu, 7 Feb 2013 01:26:14 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:18 +0000 (16:46 +1100)
commitfce08063d28a8404a6e032ddb928df8b191364bd
tree5129fa14c26cf90dbf3c30c80309b96d0ff51dd7
parent87f68e0ce63f2b9ae49090fcc0cdbac7f6aee69b
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