Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177621
b: refs/heads/master
c: 95d01fc
h: refs/heads/master
i:
  177619: dad62c5
v: v3
  • Loading branch information
Wu Fengguang authored and Andi Kleen committed Dec 16, 2009
1 parent 5c779d4 commit 9e8b21d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: dc2a1cbf7d862e9d0abea1d1b4c8712dfbb5a398
refs/heads/master: 95d01fc664b9476e0d18e3d745bb209a42a33588
14 changes: 4 additions & 10 deletions trunk/mm/memory-failure.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,14 +400,6 @@ static int me_unknown(struct page *p, unsigned long pfn)
return FAILED;
}

/*
* Free memory
*/
static int me_free(struct page *p, unsigned long pfn)
{
return DELAYED;
}

/*
* Clean (or cleaned) page cache page.
*/
Expand Down Expand Up @@ -604,7 +596,6 @@ static int me_huge_page(struct page *p, unsigned long pfn)
#define tail (1UL << PG_tail)
#define compound (1UL << PG_compound)
#define slab (1UL << PG_slab)
#define buddy (1UL << PG_buddy)
#define reserved (1UL << PG_reserved)

static struct page_state {
Expand All @@ -614,7 +605,10 @@ static struct page_state {
int (*action)(struct page *p, unsigned long pfn);
} error_states[] = {
{ reserved, reserved, "reserved kernel", me_ignore },
{ buddy, buddy, "free kernel", me_free },
/*
* free pages are specially detected outside this table:
* PG_buddy pages only make a small fraction of all free pages.
*/

/*
* Could in theory check if slab page is free or if we can drop
Expand Down

0 comments on commit 9e8b21d

Please sign in to comment.