mempolicy.c (2f5f9486f8c12e3aa40fe3775a18cb14efc5cea2) mempolicy.c (5c4b4be3b6b937256103a5ae49177e0c3a17cb8f)
1/*
2 * Simple NUMA memory policy for the Linux kernel.
3 *
4 * Copyright 2003,2004 Andi Kleen, SuSE Labs.
5 * (C) Copyright 2005 Christoph Lameter, Silicon Graphics, Inc.
6 * Subject to the GNU Public License, version 2.
7 *
8 * NUMA policy allows the user to give hints in which node(s) memory should

--- 1877 unchanged lines hidden (view full) ---

1886 /*
1887 * No reference counting needed for current->mempolicy
1888 * nor system default_policy
1889 */
1890 if (pol->mode == MPOL_INTERLEAVE)
1891 page = alloc_page_interleave(gfp, order, interleave_nodes(pol));
1892 else
1893 page = __alloc_pages_nodemask(gfp, order,
1/*
2 * Simple NUMA memory policy for the Linux kernel.
3 *
4 * Copyright 2003,2004 Andi Kleen, SuSE Labs.
5 * (C) Copyright 2005 Christoph Lameter, Silicon Graphics, Inc.
6 * Subject to the GNU Public License, version 2.
7 *
8 * NUMA policy allows the user to give hints in which node(s) memory should

--- 1877 unchanged lines hidden (view full) ---

1886 /*
1887 * No reference counting needed for current->mempolicy
1888 * nor system default_policy
1889 */
1890 if (pol->mode == MPOL_INTERLEAVE)
1891 page = alloc_page_interleave(gfp, order, interleave_nodes(pol));
1892 else
1893 page = __alloc_pages_nodemask(gfp, order,
1894 policy_zonelist(gfp, pol), policy_nodemask(gfp, pol));
1894 policy_zonelist(gfp, pol, numa_node_id()),
1895 policy_nodemask(gfp, pol));
1895 put_mems_allowed();
1896 return page;
1897}
1898EXPORT_SYMBOL(alloc_pages_current);
1899
1900/*
1901 * If mpol_dup() sees current->cpuset == cpuset_being_rebound, then it
1902 * rebinds the mempolicy its copying by calling mpol_rebind_policy()

--- 785 unchanged lines hidden ---
1896 put_mems_allowed();
1897 return page;
1898}
1899EXPORT_SYMBOL(alloc_pages_current);
1900
1901/*
1902 * If mpol_dup() sees current->cpuset == cpuset_being_rebound, then it
1903 * rebinds the mempolicy its copying by calling mpol_rebind_policy()

--- 785 unchanged lines hidden ---