From: "Figo.zhang" <figo1802@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] vmalloc.c: fix vmap_page_range() return
Date: Wed, 08 Jul 2009 00:19:49 +0800 [thread overview]
Message-ID: <1246983589.2597.16.camel@myhost> (raw)
In-Reply-To: <1246960849.2581.29.camel@myhost>
On Tue, 2009-07-07 at 18:00 +0800, Figo.zhang wrote:
> vmap_page_range() would never return a positive number.
hmm, it is my mistake. vmap_pud_range() will return the succeed mapped
page number.
Best,
Figo.zhang
>
> Signed-off-by: Figo.zhang <figo1802@gmail.com>
> ---
> mm/vmalloc.c | 4 ----
> 1 files changed, 0 insertions(+), 4 deletions(-)
>
> diff --git a/mm/vmalloc.c b/mm/vmalloc.c
> index f8189a4..bbd312d 100644
> --- a/mm/vmalloc.c
> +++ b/mm/vmalloc.c
> @@ -1109,10 +1109,6 @@ int map_vm_area(struct vm_struct *area, pgprot_t prot, struct page ***pages)
> int err;
>
> err = vmap_page_range(addr, end, prot, *pages);
> - if (err > 0) {
> - *pages += err;
> - err = 0;
> - }
>
> return err;
> }
>
prev parent reply other threads:[~2009-07-07 16:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-07 10:00 [PATCH] vmalloc.c: fix vmap_page_range() return Figo.zhang
2009-07-07 16:19 ` Figo.zhang [this message]
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=1246983589.2597.16.camel@myhost \
--to=figo1802@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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