patch-1.3.56 linux/fs/ncpfs/mmap.c
Next file: linux/fs/nfs/mmap.c
Previous file: linux/fs/namei.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Sun Jan 7 18:27:06 1996
- Orig file:
v1.3.55/linux/fs/ncpfs/mmap.c
- Orig date:
Tue Jan 2 16:46:28 1996
diff -u --recursive --new-file v1.3.55/linux/fs/ncpfs/mmap.c linux/fs/ncpfs/mmap.c
@@ -31,15 +31,19 @@
*/
static unsigned long
ncp_file_mmap_nopage(struct vm_area_struct * area,
- unsigned long address, unsigned long page, int no_share)
+ unsigned long address, int no_share)
{
struct inode * inode = area->vm_inode;
+ unsigned long page;
unsigned int clear;
unsigned long tmp;
int bufsize;
int pos;
unsigned short fs;
+ page = __get_free_page(GFP_KERNEL);
+ if (!page)
+ return page;
address &= PAGE_MASK;
pos = address - area->vm_start + area->vm_offset;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this