Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60741
b: refs/heads/master
c: 7b55f62
h: refs/heads/master
i:
  60739: 25a782e
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Jul 17, 2007
1 parent d1be85a commit dfaba9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 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: f1b263393626fe66bee34ccdbf0487cd377e0213
refs/heads/master: 7b55f620e6908fec2d51751320c2a9459b5f375f
10 changes: 1 addition & 9 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2289,15 +2289,7 @@ static noinline struct kmem_cache *dma_kmalloc_cache(int index, gfp_t flags)
if (!x)
panic("Unable to allocate memory for dma cache\n");

if (index <= KMALLOC_SHIFT_HIGH)
realsize = 1 << index;
else {
if (index == 1)
realsize = 96;
else
realsize = 192;
}

realsize = kmalloc_caches[index].objsize;
text = kasprintf(flags & ~SLUB_DMA, "kmalloc_dma-%d",
(unsigned int)realsize);
s = create_kmalloc_cache(x, text, realsize, flags);
Expand Down

0 comments on commit dfaba9f

Please sign in to comment.