diff options
| author | Sultan Qasim Khan <sultanqasim@gmail.com> | 2015-09-06 18:12:58 -0400 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-09-25 22:03:07 +0200 |
| commit | 6149d8e3877e16add9f9490818d67a459a2296ba (patch) | |
| tree | 0cfe8ada70961f82660ffcf7b6b9ed295cca53cf /include/linux | |
| parent | e08b2b7d635a9abd208a5197fca8d31c92d01e57 (diff) | |
| download | android_kernel_m2note-6149d8e3877e16add9f9490818d67a459a2296ba.tar.gz | |
mm: zsmalloc: backport from Linux 4.1
Change-Id: I3960e31f889d643e87b99fe7a88a1e0ca402d6cd
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/zsmalloc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/zsmalloc.h b/include/linux/zsmalloc.h index e44d634e7..1338190b5 100644 --- a/include/linux/zsmalloc.h +++ b/include/linux/zsmalloc.h @@ -36,7 +36,7 @@ enum zs_mapmode { struct zs_pool; -struct zs_pool *zs_create_pool(gfp_t flags); +struct zs_pool *zs_create_pool(char *name, gfp_t flags); void zs_destroy_pool(struct zs_pool *pool); unsigned long zs_malloc(struct zs_pool *pool, size_t size); @@ -46,6 +46,7 @@ void *zs_map_object(struct zs_pool *pool, unsigned long handle, enum zs_mapmode mm); void zs_unmap_object(struct zs_pool *pool, unsigned long handle); -u64 zs_get_total_size_bytes(struct zs_pool *pool); +unsigned long zs_get_total_pages(struct zs_pool *pool); +unsigned long zs_compact(struct zs_pool *pool); #endif |
