summaryrefslogtreecommitdiffstats
path: root/firmware/mts_edge.fw.ihex
diff options
context:
space:
mode:
authorVlastimil Babka <vbabka@suse.cz>2015-09-09 00:03:53 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-09-09 00:35:28 +0200
commit0bc35a970c01c50e3bcc4b5a612787346024e5db (patch)
tree54724a480e193cd3edc795797fc73fdc677ab72d /firmware/mts_edge.fw.ihex
parentmm: rename alloc_pages_exact_node() to __alloc_pages_node() (diff)
downloadlinux-0bc35a970c01c50e3bcc4b5a612787346024e5db.tar.xz
linux-0bc35a970c01c50e3bcc4b5a612787346024e5db.zip
mm: unify checks in alloc_pages_node() and __alloc_pages_node()
Perform the same debug checks in alloc_pages_node() as are done in __alloc_pages_node(), by making the former function a wrapper of the latter one. In addition to better diagnostics in DEBUG_VM builds for situations which have been already fatal (e.g. out-of-bounds node id), there are two visible changes for potential existing buggy callers of alloc_pages_node(): - calling alloc_pages_node() with any negative nid (e.g. due to arithmetic overflow) was treated as passing NUMA_NO_NODE and fallback to local node was applied. This will now be fatal. - calling alloc_pages_node() with an offline node will now be checked for DEBUG_VM builds. Since it's not fatal if the node has been previously online, and this patch may expose some existing buggy callers, change the VM_BUG_ON in __alloc_pages_node() to VM_WARN_ON. Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Acked-by: David Rientjes <rientjes@google.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Christoph Lameter <cl@linux.com> Acked-by: Michal Hocko <mhocko@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'firmware/mts_edge.fw.ihex')
0 files changed, 0 insertions, 0 deletions