diff options
author | Jody McIntyre <scjody@modernduck.com> | 2006-03-28 20:24:39 -0500 |
---|---|---|
committer | Jody McIntyre <scjody@modernduck.com> | 2006-03-28 20:24:39 -0500 |
commit | c0e4077c946104e5d8a62f835dcdca5c79c8af7d (patch) | |
tree | c1f458722f86690a6172bbac2dfef3241ba0ec7e /fs/namespace.c | |
parent | 94c2d01a537daf51a9fcf229d7d2204c979355d9 (diff) | |
parent | ca9ba4471c1203bb6e759b76e83167fec54fe590 (diff) |
Merge with git+ssh://master.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index e069a4c5e389..bf478addb852 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
@@ -459,9 +459,9 @@ int may_umount_tree(struct vfsmount *mnt) | |||
459 | spin_unlock(&vfsmount_lock); | 459 | spin_unlock(&vfsmount_lock); |
460 | 460 | ||
461 | if (actual_refs > minimum_refs) | 461 | if (actual_refs > minimum_refs) |
462 | return -EBUSY; | 462 | return 0; |
463 | 463 | ||
464 | return 0; | 464 | return 1; |
465 | } | 465 | } |
466 | 466 | ||
467 | EXPORT_SYMBOL(may_umount_tree); | 467 | EXPORT_SYMBOL(may_umount_tree); |
@@ -481,10 +481,10 @@ EXPORT_SYMBOL(may_umount_tree); | |||
481 | */ | 481 | */ |
482 | int may_umount(struct vfsmount *mnt) | 482 | int may_umount(struct vfsmount *mnt) |
483 | { | 483 | { |
484 | int ret = 0; | 484 | int ret = 1; |
485 | spin_lock(&vfsmount_lock); | 485 | spin_lock(&vfsmount_lock); |
486 | if (propagate_mount_busy(mnt, 2)) | 486 | if (propagate_mount_busy(mnt, 2)) |
487 | ret = -EBUSY; | 487 | ret = 0; |
488 | spin_unlock(&vfsmount_lock); | 488 | spin_unlock(&vfsmount_lock); |
489 | return ret; | 489 | return ret; |
490 | } | 490 | } |