patch-1.3.56 linux/fs/smbfs/mmap.c
Next file: linux/include/asm-alpha/mmu_context.h
Previous file: linux/fs/nfs/mmap.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/smbfs/mmap.c
- Orig date:
Sat Nov 11 17:41:34 1995
diff -u --recursive --new-file v1.3.55/linux/fs/smbfs/mmap.c linux/fs/smbfs/mmap.c
@@ -25,15 +25,19 @@
*/
static unsigned long
smb_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 n;
int i;
int pos;
+ page = __get_free_page(GFP_KERNEL);
+ if (!page)
+ return 0;
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