Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69609
b: refs/heads/master
c: 2408c55
h: refs/heads/master
i:
  69607: 28b7812
v: v3
  • Loading branch information
Satyam Sharma authored and Linus Torvalds committed Oct 16, 2007
1 parent 6f9eac6 commit 1ca1ab0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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: c92ff1bde06f69d59b40f3194016aee51cc5da55
refs/heads/master: 2408c55037c3f7d51a8a100025c47595e71b838c
6 changes: 3 additions & 3 deletions trunk/mm/slob.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ static void slob_free(void *block, int size)
slobidx_t units;
unsigned long flags;

if (ZERO_OR_NULL_PTR(block))
if (unlikely(ZERO_OR_NULL_PTR(block)))
return;
BUG_ON(!size);

Expand Down Expand Up @@ -466,7 +466,7 @@ void kfree(const void *block)
{
struct slob_page *sp;

if (ZERO_OR_NULL_PTR(block))
if (unlikely(ZERO_OR_NULL_PTR(block)))
return;

sp = (struct slob_page *)virt_to_page(block);
Expand All @@ -484,7 +484,7 @@ size_t ksize(const void *block)
{
struct slob_page *sp;

if (ZERO_OR_NULL_PTR(block))
if (unlikely(ZERO_OR_NULL_PTR(block)))
return 0;

sp = (struct slob_page *)virt_to_page(block);
Expand Down
8 changes: 4 additions & 4 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2449,7 +2449,7 @@ size_t ksize(const void *object)
struct page *page;
struct kmem_cache *s;

if (ZERO_OR_NULL_PTR(object))
if (unlikely(ZERO_OR_NULL_PTR(object)))
return 0;

page = get_object_page(object);
Expand Down Expand Up @@ -2483,7 +2483,7 @@ void kfree(const void *x)
{
struct page *page;

if (ZERO_OR_NULL_PTR(x))
if (unlikely(ZERO_OR_NULL_PTR(x)))
return;

page = virt_to_head_page(x);
Expand Down Expand Up @@ -2800,7 +2800,7 @@ void *__kmalloc_track_caller(size_t size, gfp_t gfpflags, void *caller)
get_order(size));
s = get_slab(size, gfpflags);

if (ZERO_OR_NULL_PTR(s))
if (unlikely(ZERO_OR_NULL_PTR(s)))
return s;

return slab_alloc(s, gfpflags, -1, caller);
Expand All @@ -2816,7 +2816,7 @@ void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags,
get_order(size));
s = get_slab(size, gfpflags);

if (ZERO_OR_NULL_PTR(s))
if (unlikely(ZERO_OR_NULL_PTR(s)))
return s;

return slab_alloc(s, gfpflags, node, caller);
Expand Down

0 comments on commit 1ca1ab0

Please sign in to comment.