Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198019
b: refs/heads/master
c: d3e14aa
h: refs/heads/master
i:
  198017: cd5bcd9
  198015: 9baf286
v: v3
  • Loading branch information
Xiaotian Feng authored and Pekka Enberg committed May 22, 2010
1 parent 0f055fb commit f1f9368
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bbd7d57bfe852d9788bae5fb171c7edb4021d8ac
refs/heads/master: d3e14aa336b37df76ae875fa051dfdb0e765ddf9
11 changes: 9 additions & 2 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -3341,8 +3341,15 @@ void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags,
struct kmem_cache *s;
void *ret;

if (unlikely(size > SLUB_MAX_SIZE))
return kmalloc_large_node(size, gfpflags, node);
if (unlikely(size > SLUB_MAX_SIZE)) {
ret = kmalloc_large_node(size, gfpflags, node);

trace_kmalloc_node(caller, ret,
size, PAGE_SIZE << get_order(size),
gfpflags, node);

return ret;
}

s = get_slab(size, gfpflags);

Expand Down

0 comments on commit f1f9368

Please sign in to comment.