Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346879
b: refs/heads/master
c: 789306e
h: refs/heads/master
i:
  346877: 0cec41d
  346875: ead670b
  346871: cc534b7
  346863: 035e1d4
  346847: 88cde32
  346815: 626c2a9
  346751: a1fbdfa
  346623: ba53838
v: v3
  • Loading branch information
Arnd Bergmann authored and Pekka Enberg committed Oct 31, 2012
1 parent 3e56e26 commit ecedc39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: d8843922fba49e887874aa1f9e748d620c5092af
refs/heads/master: 789306e5ad6b3051c263ac2478875efa8bc07462
6 changes: 3 additions & 3 deletions trunk/mm/slob.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ static __always_inline void *
__do_kmalloc_node(size_t size, gfp_t gfp, int node, unsigned long caller)
{
unsigned int *m;
int align = max(ARCH_KMALLOC_MINALIGN, ARCH_SLAB_MINALIGN);
int align = max_t(size_t, ARCH_KMALLOC_MINALIGN, ARCH_SLAB_MINALIGN);
void *ret;

gfp &= gfp_allowed_mask;
Expand Down Expand Up @@ -496,7 +496,7 @@ void kfree(const void *block)

sp = virt_to_page(block);
if (PageSlab(sp)) {
int align = max(ARCH_KMALLOC_MINALIGN, ARCH_SLAB_MINALIGN);
int align = max_t(size_t, ARCH_KMALLOC_MINALIGN, ARCH_SLAB_MINALIGN);
unsigned int *m = (unsigned int *)(block - align);
slob_free(m, *m + align);
} else
Expand All @@ -519,7 +519,7 @@ size_t ksize(const void *block)
if (unlikely(!PageSlab(sp)))
return PAGE_SIZE << compound_order(sp);

align = max(ARCH_KMALLOC_MINALIGN, ARCH_SLAB_MINALIGN);
align = max_t(size_t, ARCH_KMALLOC_MINALIGN, ARCH_SLAB_MINALIGN);
m = (unsigned int *)(block - align);
return SLOB_UNITS(*m) * SLOB_UNIT;
}
Expand Down

0 comments on commit ecedc39

Please sign in to comment.