mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-22 22:11:38 +08:00
drivers/video/acornfb.c: use __free_reserved_page() to simplify the code
Use __free_reserved_page() to simplify the code in the others. Signed-off-by: Xishi Qiu <qiuxishi@huawei.com> Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
c1ce4b375f
commit
3207d9e72c
@ -949,9 +949,7 @@ free_unused_pages(unsigned int virtual_start, unsigned int virtual_end)
|
|||||||
* the page.
|
* the page.
|
||||||
*/
|
*/
|
||||||
page = virt_to_page(virtual_start);
|
page = virt_to_page(virtual_start);
|
||||||
ClearPageReserved(page);
|
__free_reserved_page(page);
|
||||||
init_page_count(page);
|
|
||||||
free_page(virtual_start);
|
|
||||||
|
|
||||||
virtual_start += PAGE_SIZE;
|
virtual_start += PAGE_SIZE;
|
||||||
mb_freed += PAGE_SIZE / 1024;
|
mb_freed += PAGE_SIZE / 1024;
|
||||||
|
Loading…
Reference in New Issue
Block a user