Whamcloud - gitweb
- fixed umounting all GNS entrie son lustre umount (added umount_lustre patch)
[fs/lustre-release.git] / lustre / kernel_patches / patches / export-vanilla-2.6.patch
1 Index: linux-2.6.7/mm/truncate.c
2 ===================================================================
3 --- linux-2.6.7.orig/mm/truncate.c      2004-06-16 13:20:04.000000000 +0800
4 +++ linux-2.6.7/mm/truncate.c   2005-03-23 23:30:30.676444072 +0800
5 @@ -42,7 +42,7 @@
6   * its lock, b) when a concurrent invalidate_inode_pages got there first and
7   * c) when tmpfs swizzles a page between a tmpfs inode and swapper_space.
8   */
9 -static void
10 +void
11  truncate_complete_page(struct address_space *mapping, struct page *page)
12  {
13         if (page->mapping != mapping)
14 @@ -58,6 +58,8 @@
15         page_cache_release(page);       /* pagecache ref */
16  }
17  
18 +EXPORT_SYMBOL(truncate_complete_page);
19 +
20  /*
21   * This is for invalidate_inode_pages().  That function can be called at
22   * any time, and is not supposed to throw away dirty pages.  But pages can
23 Index: linux-2.6.7/fs/super.c
24 ===================================================================
25 --- linux-2.6.7.orig/fs/super.c 2004-06-16 13:19:22.000000000 +0800
26 +++ linux-2.6.7/fs/super.c      2005-03-23 23:30:30.648448328 +0800
27 @@ -804,6 +804,8 @@
28         return (struct vfsmount *)sb;
29  }
30  
31 +EXPORT_SYMBOL(do_kern_mount);
32 +
33  struct vfsmount *kern_mount(struct file_system_type *type)
34  {
35         return do_kern_mount(type->name, 0, type->name, NULL);
36 Index: linux-2.6.7/fs/jbd/journal.c
37 ===================================================================
38 --- linux-2.6.7.orig/fs/jbd/journal.c   2004-06-16 13:18:59.000000000 +0800
39 +++ linux-2.6.7/fs/jbd/journal.c        2005-03-23 23:30:30.647448480 +0800
40 @@ -71,6 +71,7 @@
41  EXPORT_SYMBOL(journal_errno);
42  EXPORT_SYMBOL(journal_ack_err);
43  EXPORT_SYMBOL(journal_clear_err);
44 +EXPORT_SYMBOL(log_start_commit);
45  EXPORT_SYMBOL(log_wait_commit);
46  EXPORT_SYMBOL(journal_start_commit);
47  EXPORT_SYMBOL(journal_wipe);
48 Index: linux-2.6.7/kernel/exit.c
49 ===================================================================
50 --- linux-2.6.7.orig/kernel/exit.c      2004-06-16 13:19:52.000000000 +0800
51 +++ linux-2.6.7/kernel/exit.c   2005-03-23 23:34:17.539955576 +0800
52 @@ -256,6 +256,8 @@
53         write_unlock_irq(&tasklist_lock);
54  }
55  
56 +EXPORT_SYMBOL(reparent_to_init);
57 +
58  void __set_special_pids(pid_t session, pid_t pgrp)
59  {
60         struct task_struct *curr = current;
61 @@ -435,6 +437,7 @@
62  {
63         __exit_files(tsk);
64  }
65 +EXPORT_SYMBOL(exit_files);
66  
67  static inline void __put_fs_struct(struct fs_struct *fs)
68  {
69 Index: linux-2.6.7/include/linux/fs.h
70 ===================================================================
71 --- linux-2.6.7.orig/include/linux/fs.h 2005-03-23 23:30:08.535809960 +0800
72 +++ linux-2.6.7/include/linux/fs.h      2005-03-23 23:30:30.675444224 +0800
73 @@ -1133,6 +1133,7 @@
74  extern struct vfsmount *kern_mount(struct file_system_type *);
75  extern int may_umount_tree(struct vfsmount *);
76  extern int may_umount(struct vfsmount *);
77 +struct vfsmount *do_kern_mount(const char *type, int flags, const char *name, void *data);
78  extern long do_mount(char *, char *, char *, unsigned long, void *);
79  
80  extern int vfs_statfs(struct super_block *, struct kstatfs *);
81 Index: linux-2.6.7/include/linux/mm.h
82 ===================================================================
83 --- linux-2.6.7.orig/include/linux/mm.h 2004-06-16 13:18:56.000000000 +0800
84 +++ linux-2.6.7/include/linux/mm.h      2005-03-23 23:30:30.673444528 +0800
85 @@ -653,6 +653,9 @@
86  
87  extern unsigned long do_brk(unsigned long, unsigned long);
88  
89 +/* truncate.c */
90 +extern void truncate_complete_page(struct address_space *mapping,struct page *);
91 +
92  /* filemap.c */
93  extern unsigned long page_unuse(struct page *);
94  extern void truncate_inode_pages(struct address_space *, loff_t);