[PATCH] 2.3.27-pre6: ncpfs

Petr Vandrovec (vandrove@vc.cvut.cz)
Thu, 11 Nov 1999 23:25:32 +0100


Hi Linus,
someone played with MM again. Probably he noticed
that two weeks ago I added call to __get_pages() into
ncpfs mmap code and took it as good reason for removing
this function from kernel public interface :-(
This patch switches my code back to __get_free_page().
Diff was generated on the top of 2.3.27-pre6.
Thanks for applying this. I hope that MM code stabilizes
soon.
Petr Vandrovec
vandrove@vc.cvut.cz

diff -urdN linux/fs/ncpfs/mmap.c linux/fs/ncpfs/mmap.c
--- linux/fs/ncpfs/mmap.c Thu Nov 11 21:32:44 1999
+++ linux/fs/ncpfs/mmap.c Thu Nov 11 22:08:06 1999
@@ -43,10 +43,10 @@
int bufsize;
int pos;

- page = __get_pages(GFP_KERNEL, 0);
- if (!page)
- return page;
- pg_addr = page_address(page);
+ pg_addr = __get_free_page(GFP_KERNEL);
+ if (!pg_addr)
+ return NULL;
+ page = mem_map + MAP_NR(pg_addr);
address &= PAGE_MASK;
pos = address - area->vm_start + (area->vm_pgoff << PAGE_SHIFT);

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