Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 363765
b: refs/heads/master
c: b26c05a
h: refs/heads/master
i:
  363763: 0340e05
v: v3
  • Loading branch information
Andrew Morton authored and Greg Kroah-Hartman committed Mar 26, 2013
1 parent afbbf7e commit d1eebf7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 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: 7c00782b1d4b9073ae38891d636302b1267285af
refs/heads/master: b26c05a207de3a2f84f1e084ad47a55a2d8e6fb0
26 changes: 0 additions & 26 deletions trunk/drivers/staging/zcache/zcache-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,32 +277,6 @@ static void zcache_obj_free(struct tmem_obj *obj, struct tmem_pool *pool)
kmem_cache_free(zcache_obj_cache, obj);
}

static bool page_is_zero_filled(void *ptr)
{
unsigned int pos;
unsigned long *page;

page = (unsigned long *)ptr;

for (pos = 0; pos < PAGE_SIZE / sizeof(*page); pos++) {
if (page[pos])
return false;
}

return true;
}

static void handle_zero_filled_page(void *page)
{
void *user_mem;

user_mem = kmap_atomic(page);
memset(user_mem, 0, PAGE_SIZE);
kunmap_atomic(user_mem);

flush_dcache_page(page);
}

static struct tmem_hostops zcache_hostops = {
.obj_alloc = zcache_obj_alloc,
.obj_free = zcache_obj_free,
Expand Down

0 comments on commit d1eebf7

Please sign in to comment.