patch-2.1.60 linux/fs/fat/mmap.c
Next file: linux/fs/fat/tables.c
Previous file: linux/fs/fat/misc.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Thu Oct 23 14:00:15 1997
- Orig file:
v2.1.59/linux/fs/fat/mmap.c
- Orig date:
Tue Sep 23 16:48:48 1997
diff -u --recursive --new-file v2.1.59/linux/fs/fat/mmap.c linux/fs/fat/mmap.c
@@ -7,6 +7,9 @@
* mmap handling for fat-based filesystems
*/
+#define ASC_LINUX_VERSION(V, P, S) (((V) * 65536) + ((P) * 256) + (S))
+#include <linux/version.h>
+
#include <linux/stat.h>
#include <linux/sched.h>
#include <linux/kernel.h>
@@ -18,7 +21,11 @@
#include <linux/malloc.h>
#include <linux/msdos_fs.h>
+#if LINUX_VERSION_CODE >= ASC_LINUX_VERSION(2,1,0)
#include <asm/uaccess.h>
+#else
+#include <asm/segment.h>
+#endif
#include <asm/system.h>
/*
@@ -59,8 +66,8 @@
{
unsigned long cur_fs = get_fs();
set_fs (KERNEL_DS);
- cur_read = fat_file_read (inode,&filp,(char*)page
- ,need_read);
+ cur_read = fat_file_read (&filp, (char*)page,
+ need_read, &filp.f_pos);
set_fs (cur_fs);
}
if (cur_read != need_read){
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov