[<prev] [next>] [day] [month] [year] [list]
Message-ID: <52270E64.20401@huawei.com>
Date: Wed, 4 Sep 2013 18:41:40 +0800
From: Xishi Qiu <qiuxishi@...wei.com>
To: <plagnioj@...osoft.com>, <tomi.valkeinen@...com>,
<james.hogan@...tec.com>, <monstr@...str.eu>,
<benh@...nel.crashing.org>, <paulus@...ba.org>,
Andrew Morton <akpm@...ux-foundation.org>
CC: Xishi Qiu <qiuxishi@...wei.com>,
<microblaze-uclinux@...e.uq.edu.au>,
<linuxppc-dev@...ts.ozlabs.org>, <linux-fbdev@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>, <linux-mm@...ck.org>
Subject: [PATCH 2/2] mm/driver: 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@...wei.com>
---
drivers/video/acornfb.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/video/acornfb.c b/drivers/video/acornfb.c
index 6488a73..4ef302a 100644
--- a/drivers/video/acornfb.c
+++ b/drivers/video/acornfb.c
@@ -1205,9 +1205,7 @@ free_unused_pages(unsigned int virtual_start, unsigned int virtual_end)
* the page.
*/
page = virt_to_page(virtual_start);
- ClearPageReserved(page);
- init_page_count(page);
- free_page(virtual_start);
+ __free_reserved_page(page);
virtual_start += PAGE_SIZE;
mb_freed += PAGE_SIZE / 1024;
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists