[14/17] Allow bit_waitqueue to wait on a bit in a vmalloc area

2007-09-25 Thread Christoph Lameter
If bit waitqueue is passed a virtual address then it must use vmalloc_to_page instead of virt_to_page to get to the page struct. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- kernel/wait.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/kernel/wait.c ===

Re: [14/17] Allow bit_waitqueue to wait on a bit in a vmalloc area

2007-09-19 Thread Christoph Lameter
On Wed, 19 Sep 2007, Gabriel C wrote: > Christoph Lameter wrote: > > > > > + if (is_vmalloc_addr(word)) > > + page = vmalloc_to_page(word) > ^^ > Missing ' ; ' Argh. Late beautification attempts are backfiring - To unsubscribe from this

Re: [14/17] Allow bit_waitqueue to wait on a bit in a vmalloc area

2007-09-18 Thread Gabriel C
Christoph Lameter wrote: > > + if (is_vmalloc_addr(word)) > + page = vmalloc_to_page(word) ^^ Missing ' ; ' > + else > + page = virt_to_page(word); > + > + zone = page_zone(page); > return &zone->wait_table[ha

[14/17] Allow bit_waitqueue to wait on a bit in a vmalloc area

2007-09-18 Thread Christoph Lameter
If bit waitqueue is passed a virtual address then it must use vmalloc_to_page instead of virt_to_page to get to the page struct. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- kernel/wait.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) Index: linux-2.6/kernel/wait.