Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97387
b: refs/heads/master
c: 7699441
h: refs/heads/master
i:
  97385: 9968149
  97383: 6d6cd59
v: v3
  • Loading branch information
Pekka Enberg committed May 22, 2008
1 parent 5b5c829 commit 21894eb
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 239f49c0800778c863585a103805c58afbad6748
refs/heads/master: 76994412f8e824e79a593d6777ec327d85f942b2
5 changes: 3 additions & 2 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2726,9 +2726,10 @@ size_t ksize(const void *object)

page = virt_to_head_page(object);

if (unlikely(!PageSlab(page)))
if (unlikely(!PageSlab(page))) {
WARN_ON(!PageCompound(page));
return PAGE_SIZE << compound_order(page);

}
s = page->slab;

#ifdef CONFIG_SLUB_DEBUG
Expand Down

0 comments on commit 21894eb

Please sign in to comment.