Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206071
b: refs/heads/master
c: d602dab
h: refs/heads/master
i:
  206069: 0d26105
  206067: a293626
  206063: d76c4b5
v: v3
  • Loading branch information
Bob Liu authored and Pekka Enberg committed Jul 16, 2010
1 parent 708b7f9 commit 01b2f93
Show file tree
Hide file tree
Showing 3 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: 78b435368fcd615e695a06012cd963a556284e00
refs/heads/master: d602dabaeba79df90cc67c32d5fe4ee0d5e2b73a
2 changes: 1 addition & 1 deletion trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ static void __cpuinit start_cpu_timer(int cpu)
*/
if (keventd_up() && reap_work->work.func == NULL) {
init_reap_node(cpu);
INIT_DELAYED_WORK_DEFERRABLE(reap_work, cache_reap);
INIT_DELAYED_WORK(reap_work, cache_reap);
schedule_delayed_work_on(cpu, reap_work,
__round_jiffies_relative(HZ, cpu));
}
Expand Down
9 changes: 8 additions & 1 deletion trunk/mm/slob.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ static void slob_free(void *block, int size)
slob_t *prev, *next, *b = (slob_t *)block;
slobidx_t units;
unsigned long flags;
struct list_head *slob_list;

if (unlikely(ZERO_OR_NULL_PTR(block)))
return;
Expand Down Expand Up @@ -422,7 +423,13 @@ static void slob_free(void *block, int size)
set_slob(b, units,
(void *)((unsigned long)(b +
SLOB_UNITS(PAGE_SIZE)) & PAGE_MASK));
set_slob_page_free(sp, &free_slob_small);
if (size < SLOB_BREAK1)
slob_list = &free_slob_small;
else if (size < SLOB_BREAK2)
slob_list = &free_slob_medium;
else
slob_list = &free_slob_large;
set_slob_page_free(sp, slob_list);
goto out;
}

Expand Down

0 comments on commit 01b2f93

Please sign in to comment.