Whamcloud - gitweb
Revert Tom's commit. It breaks recovery.
[fs/lustre-release.git] / lustre / kernel_patches / patches / vfs-gns_export_doumount-2.6.10-fc3.patch
1 Index: linux-2.6.10/fs/namespace.c
2 ===================================================================
3 --- linux-2.6.10.orig/fs/namespace.c    2005-03-31 17:03:37.000000000 +0800
4 +++ linux-2.6.10/fs/namespace.c 2005-03-31 17:58:42.827926064 +0800
5 @@ -365,7 +365,7 @@
6         }
7  }
8  
9 -static int do_umount(struct vfsmount *mnt, int flags)
10 +int do_umount(struct vfsmount *mnt, int flags)
11  {
12         struct super_block * sb = mnt->mnt_sb;
13         int retval;
14 @@ -458,6 +458,8 @@
15         return retval;
16  }
17  
18 +EXPORT_SYMBOL(do_umount);
19 +
20  /*
21   * Now umount can handle mount points as well as block devices.
22   * This is important for filesystems which use unnamed block devices.
23 Index: linux-2.6.10/include/linux/mount.h
24 ===================================================================
25 --- linux-2.6.10.orig/include/linux/mount.h     2005-03-31 17:15:40.000000000 +0800
26 +++ linux-2.6.10/include/linux/mount.h  2005-03-31 17:59:41.914943472 +0800
27 @@ -70,6 +70,7 @@
28  extern struct vfsmount *do_kern_mount(const char *fstype, int flags,
29                                       const char *name, void *data);
30  
31 +extern int do_umount(struct vfsmount *mnt, int flags);
32  struct nameidata;
33  
34  extern int do_add_mount(struct vfsmount *newmnt, struct nameidata *nd,