VFS: Remove dependency of ->umount_begin() call on MNT_FORCE

Allow filesystems to decide to perform pre-umount processing whether or not
MNT_FORCE is set.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
Trond Myklebust
2006-06-09 09:34:18 -04:00
parent 5528f911b4
commit 8b512d9a88
6 changed files with 23 additions and 15 deletions

View File

@@ -576,8 +576,8 @@ static int do_umount(struct vfsmount *mnt, int flags)
*/
lock_kernel();
if ((flags & MNT_FORCE) && sb->s_op->umount_begin)
sb->s_op->umount_begin(sb);
if (sb->s_op->umount_begin)
sb->s_op->umount_begin(mnt, flags);
unlock_kernel();
/*