[PATCH] relayfs: fix bogus param value in call to vmap

The third param in this call to vmap shouldn't be GFP_KERNEL, which
makes no sense, but rather VM_MAP.  Thanks to Al Viro for spotting
this.

Signed-off-by: Tom Zanussi <zanussi@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Tom Zanussi 2005-10-09 10:41:32 -05:00 committed by Linus Torvalds
parent eb1b74e097
commit 1cc956e12a
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ static void *relay_alloc_buf(struct rchan_buf *buf, unsigned long size)
if (unlikely(!buf->page_array[i])) if (unlikely(!buf->page_array[i]))
goto depopulate; goto depopulate;
} }
mem = vmap(buf->page_array, n_pages, GFP_KERNEL, PAGE_KERNEL); mem = vmap(buf->page_array, n_pages, VM_MAP, PAGE_KERNEL);
if (!mem) if (!mem)
goto depopulate; goto depopulate;