]> git.ipfire.org Git - thirdparty/kernel/linux.git/blobdiff - drivers/staging/android/ion/ion_page_pool.c
staging: android: ion: Combine cache and uncache pools
[thirdparty/kernel/linux.git] / drivers / staging / android / ion / ion_page_pool.c
index 6d2caf04943cb5a349191e860f69750d7cc6dd5a..db8f61446917c477ed94e3a3bc9f6b949b0f4153 100644 (file)
@@ -123,8 +123,7 @@ int ion_page_pool_shrink(struct ion_page_pool *pool, gfp_t gfp_mask,
        return freed;
 }
 
-struct ion_page_pool *ion_page_pool_create(gfp_t gfp_mask, unsigned int order,
-                                          bool cached)
+struct ion_page_pool *ion_page_pool_create(gfp_t gfp_mask, unsigned int order)
 {
        struct ion_page_pool *pool = kmalloc(sizeof(*pool), GFP_KERNEL);
 
@@ -138,8 +137,6 @@ struct ion_page_pool *ion_page_pool_create(gfp_t gfp_mask, unsigned int order,
        pool->order = order;
        mutex_init(&pool->mutex);
        plist_node_init(&pool->list, order);
-       if (cached)
-               pool->cached = true;
 
        return pool;
 }