public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Xishi Qiu <qiuxishi@huawei•com>
To: <plagnioj@jcrosoft•com>, <tomi.valkeinen@ti•com>,
	<james.hogan@imgtec•com>, <monstr@monstr•eu>,
	<benh@kernel•crashing.org>, <paulus@samba•org>,
	Andrew Morton <akpm@linux-foundation•org>
Cc: linux-fbdev@vger•kernel.org, microblaze-uclinux@itee•uq.edu.au,
	LKML <linux-kernel@vger•kernel.org>,
	linux-mm@kvack•org, Xishi Qiu <qiuxishi@huawei•com>,
	linuxppc-dev@lists•ozlabs.org
Subject: [PATCH 2/2] mm/driver: use __free_reserved_page() to simplify the code
Date: Wed, 4 Sep 2013 18:41:40 +0800	[thread overview]
Message-ID: <52270E64.20401@huawei.com> (raw)

Use __free_reserved_page() to simplify the code in the others.

Signed-off-by: Xishi Qiu <qiuxishi@huawei•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

                 reply	other threads:[~2013-09-04 10:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52270E64.20401@huawei.com \
    --to=qiuxishi@huawei$(echo .)com \
    --cc=akpm@linux-foundation$(echo .)org \
    --cc=benh@kernel$(echo .)crashing.org \
    --cc=james.hogan@imgtec$(echo .)com \
    --cc=linux-fbdev@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-mm@kvack$(echo .)org \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=microblaze-uclinux@itee$(echo .)uq.edu.au \
    --cc=monstr@monstr$(echo .)eu \
    --cc=paulus@samba$(echo .)org \
    --cc=plagnioj@jcrosoft$(echo .)com \
    --cc=tomi.valkeinen@ti$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox