Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145078
b: refs/heads/master
c: 1f0532e
h: refs/heads/master
v: v3
  • Loading branch information
Nick Piggin authored and Pekka Enberg committed May 6, 2009
1 parent 711264e commit f67d7cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 1eb5ac6466d4be7b15b38ce3ab709600f1bc891f
refs/heads/master: 1f0532eb617d28f65c93593a1491f662f14f7eac
5 changes: 4 additions & 1 deletion trunk/mm/slob.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/swap.h> /* struct reclaim_state */
#include <linux/cache.h>
#include <linux/init.h>
#include <linux/module.h>
Expand Down Expand Up @@ -255,6 +256,8 @@ static void *slob_new_pages(gfp_t gfp, int order, int node)

static void slob_free_pages(void *b, int order)
{
if (current->reclaim_state)
current->reclaim_state->reclaimed_slab += 1 << order;
free_pages((unsigned long)b, order);
}

Expand Down Expand Up @@ -407,7 +410,7 @@ static void slob_free(void *block, int size)
spin_unlock_irqrestore(&slob_lock, flags);
clear_slob_page(sp);
free_slob_page(sp);
free_page((unsigned long)b);
slob_free_pages(b, 0);
return;
}

Expand Down

0 comments on commit f67d7cb

Please sign in to comment.