Whamcloud - gitweb
- elimininate the system calls from filter obd
[fs/lustre-release.git] / lustre / patches / patch-2.4.17
1 diff -u -r linux-2.4.17-stock/include/linux/fs.h linux-2.4.17/include/linux/fs.h
2 --- linux-2.4.17-stock/include/linux/fs.h       Fri Dec 21 09:42:03 2001
3 +++ linux-2.4.17/include/linux/fs.h     Wed Feb 20 13:39:51 2002
4 @@ -984,6 +984,7 @@
5  extern int may_umount(struct vfsmount *);
6  extern long do_mount(char *, char *, char *, unsigned long, void *);
7  
8 +struct vfsmount *do_kern_mount(char *type, int flags, char *name, void *data);
9  #define kern_umount mntput
10  
11  extern int vfs_statfs(struct super_block *, struct statfs *);
12 @@ -1042,6 +1045,6 @@
13                 return __get_lease(inode, mode);
14         return 0;
15  }
16  
17  /* fs/open.c */
18  
19 --- linux-2.4.17-stock/kernel/ksyms.c   Fri Dec 21 09:42:04 2001
20 +++ linux-2.4.17/kernel/ksyms.c Wed Feb 20 12:57:32 2002
21 @@ -280,7 +290,11 @@
22  EXPORT_SYMBOL(lock_page);
23  EXPORT_SYMBOL(unlock_page);
24  
25 +/* Lustre symbols */
26 +EXPORT_SYMBOL(pagecache_lock);
27 +EXPORT_SYMBOL(do_kern_mount);
28 +EXPORT_SYMBOL(module_list);
29  
30  /* device registration */
31  EXPORT_SYMBOL(register_chrdev);
32  EXPORT_SYMBOL(unregister_chrdev);
33 --- linux-2.4.17-stock/mm/filemap.c     Fri Dec 21 09:42:04 2001
34 +++ linux-2.4.17/mm/filemap.c   Wed Feb 20 15:18:17 2002
35 @@ -2862,8 +2880,10 @@
36         if ((ssize_t) count < 0)
37                 return -EINVAL;
38  
39 +#if 0
40         if (!access_ok(VERIFY_READ, buf, count))
41                 return -EFAULT;
42 +#endif
43  
44         cached_page = NULL;
45  
46 @@ -2987,10 +3007,12 @@
47                  * same page as we're writing to, without it being marked
48                  * up-to-date.
49                  */
50 +#if 0
51                 { volatile unsigned char dummy;
52                         __get_user(dummy, buf);
53                         __get_user(dummy, buf+bytes-1);
54                 }
55 +#endif
56  
57                 status = -ENOMEM;       /* we'll assign it later anyway */
58                 page = __grab_cache_page(mapping, index, &cached_page);