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:
@@ -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();
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user