]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/namespace.c
vmallocinfo: add caller information
[linux-2.6-omap-h63xx.git] / fs / namespace.c
index 0505fb61aa740182cfabe890cc668724378c5791..f48f98110c30aefaa114ff0f15c0b7cece3f938d 100644 (file)
@@ -1061,10 +1061,11 @@ static int do_umount(struct vfsmount *mnt, int flags)
         * about for the moment.
         */
 
-       lock_kernel();
-       if (sb->s_op->umount_begin)
-               sb->s_op->umount_begin(mnt, flags);
-       unlock_kernel();
+       if (flags & MNT_FORCE && sb->s_op->umount_begin) {
+               lock_kernel();
+               sb->s_op->umount_begin(sb);
+               unlock_kernel();
+       }
 
        /*
         * No sense to grab the lock for this test, but test itself looks