Re: [PATCH] vmalloc.c: fix vmap_page_range() return

From: Figo.zhang
Date: Tue Jul 07 2009 - 12:20:13 EST


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@xxxxxxxxx>
> ---
> 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;
> }
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/