From: "Pekka Enberg" <penberg@cs.helsinki.fi>
To: Nick Piggin <npiggin@suse.de>
Cc: Andrew Morton <akpm@osdl.org>,
Linux Memory Management List <linux-mm@kvack.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [patch] mm: introduce remap_vmalloc_range (pls. drop previous patchset)
Date: Fri, 21 Apr 2006 11:57:32 +0300 [thread overview]
Message-ID: <84144f020604210157s406a08a7yd3c43d9ef2939ce@mail.gmail.com> (raw)
In-Reply-To: <20060421084503.GS21660@wotan.suse.de>
Hi Nick,
On 4/21/06, Nick Piggin <npiggin@suse.de> wrote:
> + addr = (void *)((unsigned long)addr + (pgoff << PAGE_SHIFT));
As Andrew said, you can get rid of the casting with:
addr += pgoff << PAGE_SHIFT;
> + do {
> + struct page *page = vmalloc_to_page(addr);
> + ret = vm_insert_page(vma, uaddr, page);
> + if (ret)
> + return ret;
> +
> + uaddr += PAGE_SIZE;
> + addr = (void *)((unsigned long)addr+PAGE_SIZE);
Same here.
Pekka
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2006-04-21 8:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-21 8:45 Nick Piggin
2006-04-21 8:57 ` Pekka Enberg [this message]
2006-04-21 9:02 ` Nick Piggin
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=84144f020604210157s406a08a7yd3c43d9ef2939ce@mail.gmail.com \
--to=penberg@cs.helsinki.fi \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=npiggin@suse.de \
/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