Whamcloud - gitweb
- during last landing old version of the patch was checked in. fixed
[fs/lustre-release.git] / lustre / kernel_patches / patches / vfs-umount_lustre-vanilla-2.6.10-fc3.patch
1 diff -rupN linux-2.6.10.orig/fs/namespace.c linux-2.6.10/fs/namespace.c
2 --- linux-2.6.10.orig/fs/namespace.c    2005-05-16 10:46:42.000000000 +0300
3 +++ linux-2.6.10/fs/namespace.c 2005-05-16 10:31:53.000000000 +0300
4 @@ -407,6 +407,8 @@ int do_umount(struct vfsmount *mnt, int 
5          */
6  
7         lock_kernel();
8 +       if (sb->s_op->umount_lustre)
9 +               sb->s_op->umount_lustre(sb);
10         if( (flags&MNT_FORCE) && sb->s_op->umount_begin)
11                 sb->s_op->umount_begin(sb);
12         unlock_kernel();
13 diff -rupN linux-2.6.10.orig/include/linux/fs.h linux-2.6.10/include/linux/fs.h
14 --- linux-2.6.10.orig/include/linux/fs.h        2005-05-16 10:47:02.000000000 +0300
15 +++ linux-2.6.10/include/linux/fs.h     2005-05-16 10:32:50.000000000 +0300
16 @@ -997,6 +997,7 @@ struct super_operations {
17         int (*remount_fs) (struct super_block *, int *, char *);
18         void (*clear_inode) (struct inode *);
19         void (*umount_begin) (struct super_block *);
20 +       void (*umount_lustre) (struct super_block *);
21  
22         int (*show_options)(struct seq_file *, struct vfsmount *);
23  };