mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]>
This commit is contained in:
parent
5528f911b4
commit
8b512d9a88
6 changed files with 23 additions and 15 deletions
|
|
@ -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();
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue