|
@@ -459,9 +459,9 @@ int may_umount_tree(struct vfsmount *mnt)
|
|
spin_unlock(&vfsmount_lock);
|
|
spin_unlock(&vfsmount_lock);
|
|
|
|
|
|
if (actual_refs > minimum_refs)
|
|
if (actual_refs > minimum_refs)
|
|
- return -EBUSY;
|
|
|
|
|
|
+ return 0;
|
|
|
|
|
|
- return 0;
|
|
|
|
|
|
+ return 1;
|
|
}
|
|
}
|
|
|
|
|
|
EXPORT_SYMBOL(may_umount_tree);
|
|
EXPORT_SYMBOL(may_umount_tree);
|
|
@@ -481,10 +481,10 @@ EXPORT_SYMBOL(may_umount_tree);
|
|
*/
|
|
*/
|
|
int may_umount(struct vfsmount *mnt)
|
|
int may_umount(struct vfsmount *mnt)
|
|
{
|
|
{
|
|
- int ret = 0;
|
|
|
|
|
|
+ int ret = 1;
|
|
spin_lock(&vfsmount_lock);
|
|
spin_lock(&vfsmount_lock);
|
|
if (propagate_mount_busy(mnt, 2))
|
|
if (propagate_mount_busy(mnt, 2))
|
|
- ret = -EBUSY;
|
|
|
|
|
|
+ ret = 0;
|
|
spin_unlock(&vfsmount_lock);
|
|
spin_unlock(&vfsmount_lock);
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|