Whamcloud - gitweb
- add mballoc to ldiskfs series
[fs/lustre-release.git] / lustre / kernel_patches / patches / vfs-gns_export_doumount.patch
1 Index: linux-2.6.7/fs/namespace.c
2 ===================================================================
3 --- linux-2.6.7.orig/fs/namespace.c     2004-11-21 00:25:13.000000000 +0200
4 +++ linux-2.6.7/fs/namespace.c  2004-11-21 00:25:15.000000000 +0200
5 @@ -360,7 +360,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 @@ -434,6 +434,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.7/include/linux/mount.h
24 ===================================================================
25 --- linux-2.6.7.orig/include/linux/mount.h      2004-11-21 00:25:13.000000000 +0200
26 +++ linux-2.6.7/include/linux/mount.h   2005-01-11 15:28:26.627030408 +0200
27 @@ -56,6 +56,7 @@
28  extern struct vfsmount *alloc_vfsmnt(const char *name);
29  extern struct vfsmount *do_kern_mount(const char *fstype, int flags,
30                                       const char *name, void *data);
31 +extern int do_umount(struct vfsmount *mnt, int flags);
32  extern spinlock_t vfsmount_lock;
33  
34  #endif