mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -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
|
|
@ -253,11 +253,12 @@ static int v9fs_show_options(struct seq_file *m, struct vfsmount *mnt)
|
|||
}
|
||||
|
||||
static void
|
||||
v9fs_umount_begin(struct super_block *sb)
|
||||
v9fs_umount_begin(struct vfsmount *vfsmnt, int flags)
|
||||
{
|
||||
struct v9fs_session_info *v9ses = sb->s_fs_info;
|
||||
struct v9fs_session_info *v9ses = vfsmnt->mnt_sb->s_fs_info;
|
||||
|
||||
v9fs_session_cancel(v9ses);
|
||||
if (flags & MNT_FORCE)
|
||||
v9fs_session_cancel(v9ses);
|
||||
}
|
||||
|
||||
static struct super_operations v9fs_super_ops = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue