mempolicy.c (0cce284537fb42d9c28b9b31038ffc9b464555f5) | mempolicy.c (d51e9894d27492783fc6d1b489070b4ba66ce969) |
---|---|
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 --- 2003 unchanged lines hidden (view full) --- 2012 page = __alloc_pages_node(hpage_node, 2013 gfp | __GFP_THISNODE, order); 2014 goto out; 2015 } 2016 } 2017 2018 nmask = policy_nodemask(gfp, pol); 2019 zl = policy_zonelist(gfp, pol, node); | 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 --- 2003 unchanged lines hidden (view full) --- 2012 page = __alloc_pages_node(hpage_node, 2013 gfp | __GFP_THISNODE, order); 2014 goto out; 2015 } 2016 } 2017 2018 nmask = policy_nodemask(gfp, pol); 2019 zl = policy_zonelist(gfp, pol, node); |
2020 mpol_cond_put(pol); | |
2021 page = __alloc_pages_nodemask(gfp, order, zl, nmask); | 2020 page = __alloc_pages_nodemask(gfp, order, zl, nmask); |
2021 mpol_cond_put(pol); |
|
2022out: 2023 if (unlikely(!page && read_mems_allowed_retry(cpuset_mems_cookie))) 2024 goto retry_cpuset; 2025 return page; 2026} 2027 2028/** 2029 * alloc_pages_current - Allocate pages. --- 830 unchanged lines hidden --- | 2022out: 2023 if (unlikely(!page && read_mems_allowed_retry(cpuset_mems_cookie))) 2024 goto retry_cpuset; 2025 return page; 2026} 2027 2028/** 2029 * alloc_pages_current - Allocate pages. --- 830 unchanged lines hidden --- |