Loading drivers/staging/android/ion/ion_page_pool.c +6 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ * drivers/staging/android/ion/ion_page_pool.c * * Copyright (C) 2011 Google, Inc. * Copyright (c) 2016, The Linux Foundation. All rights reserved. * Copyright (c) 2016, 2018 The Linux Foundation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and Loading Loading @@ -65,6 +65,9 @@ static int ion_page_pool_add(struct ion_page_pool *pool, struct page *page) list_add_tail(&page->lru, &pool->low_items); pool->low_count++; } mod_node_page_state(page_pgdat(page), NR_INDIRECTLY_RECLAIMABLE_BYTES, (1 << (PAGE_SHIFT + pool->order))); mutex_unlock(&pool->mutex); return 0; } Loading @@ -84,6 +87,8 @@ static struct page *ion_page_pool_remove(struct ion_page_pool *pool, bool high) } list_del(&page->lru); mod_node_page_state(page_pgdat(page), NR_INDIRECTLY_RECLAIMABLE_BYTES, -(1 << (PAGE_SHIFT + pool->order))); return page; } Loading Loading
drivers/staging/android/ion/ion_page_pool.c +6 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ * drivers/staging/android/ion/ion_page_pool.c * * Copyright (C) 2011 Google, Inc. * Copyright (c) 2016, The Linux Foundation. All rights reserved. * Copyright (c) 2016, 2018 The Linux Foundation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and Loading Loading @@ -65,6 +65,9 @@ static int ion_page_pool_add(struct ion_page_pool *pool, struct page *page) list_add_tail(&page->lru, &pool->low_items); pool->low_count++; } mod_node_page_state(page_pgdat(page), NR_INDIRECTLY_RECLAIMABLE_BYTES, (1 << (PAGE_SHIFT + pool->order))); mutex_unlock(&pool->mutex); return 0; } Loading @@ -84,6 +87,8 @@ static struct page *ion_page_pool_remove(struct ion_page_pool *pool, bool high) } list_del(&page->lru); mod_node_page_state(page_pgdat(page), NR_INDIRECTLY_RECLAIMABLE_BYTES, -(1 << (PAGE_SHIFT + pool->order))); return page; } Loading