patch-1.3.56 linux/fs/msdos/mmap.c
Next file: linux/fs/namei.c
Previous file: linux/fs/buffer.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Sun Jan 7 18:27:06 1996
- Orig file:
v1.3.55/linux/fs/msdos/mmap.c
- Orig date:
Thu Nov 9 11:23:51 1995
diff -u --recursive --new-file v1.3.55/linux/fs/msdos/mmap.c linux/fs/msdos/mmap.c
@@ -27,14 +27,17 @@
static unsigned long msdos_file_mmap_nopage(
struct vm_area_struct * area,
unsigned long address,
- unsigned long page,
int error_code)
{
struct inode * inode = area->vm_inode;
+ unsigned long page;
unsigned int clear;
int pos;
long gap; /* distance from eof to pos */
+ 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