Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304475
b: refs/heads/master
c: a27545b
h: refs/heads/master
i:
  304473: 4cdf877
  304471: cfb3d9e
v: v3
  • Loading branch information
Minchan Kim authored and Greg Kroah-Hartman committed Apr 25, 2012
1 parent 78d062b commit b310310
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: ae467dd55d9cff0e8e3535e8b353e4a686205096
refs/heads/master: a27545bf0bab9027e5c040901b68956551d9f63e
9 changes: 4 additions & 5 deletions trunk/drivers/staging/zsmalloc/zsmalloc-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ static DEFINE_PER_CPU(struct mapping_area, zs_map_area);

static int is_first_page(struct page *page)
{
return test_bit(PG_private, &page->flags);
return PagePrivate(page);
}

static int is_last_page(struct page *page)
{
return test_bit(PG_private_2, &page->flags);
return PagePrivate2(page);
}

static void get_zspage_mapping(struct page *page, unsigned int *class_idx,
Expand Down Expand Up @@ -371,7 +371,7 @@ static struct page *alloc_zspage(struct size_class *class, gfp_t flags)

INIT_LIST_HEAD(&page->lru);
if (i == 0) { /* first page */
set_bit(PG_private, &page->flags);
SetPagePrivate(page);
set_page_private(page, 0);
first_page = page;
first_page->inuse = 0;
Expand All @@ -383,8 +383,7 @@ static struct page *alloc_zspage(struct size_class *class, gfp_t flags)
if (i >= 2)
list_add(&page->lru, &prev_page->lru);
if (i == class->zspage_order - 1) /* last page */
set_bit(PG_private_2, &page->flags);

SetPagePrivate2(page);
prev_page = page;
}

Expand Down

0 comments on commit b310310

Please sign in to comment.