From: Al Viro Date: Sat, 16 Jan 2010 18:06:32 +0000 (-0500) Subject: CIFS shouldn't make mountpoints shrinkable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7e1295d9f8300e8c8d1af01765f475621c19ee1d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git CIFS shouldn't make mountpoints shrinkable Signed-off-by: Al Viro --- diff --git a/fs/cifs/cifs_dfs_ref.c b/fs/cifs/cifs_dfs_ref.c index fea9e898c4ba..b44ce0a0711c 100644 --- a/fs/cifs/cifs_dfs_ref.c +++ b/fs/cifs/cifs_dfs_ref.c @@ -269,7 +269,7 @@ static int add_mount_helper(struct vfsmount *newmnt, struct nameidata *nd, int err; mntget(newmnt); - err = do_add_mount(newmnt, &nd->path, nd->path.mnt->mnt_flags, mntlist); + err = do_add_mount(newmnt, &nd->path, nd->path.mnt->mnt_flags | MNT_SHRINKABLE, mntlist); switch (err) { case 0: path_put(&nd->path); @@ -371,7 +371,6 @@ cifs_dfs_follow_mountpoint(struct dentry *dentry, struct nameidata *nd) if (IS_ERR(mnt)) goto out_err; - nd->path.mnt->mnt_flags |= MNT_SHRINKABLE; rc = add_mount_helper(mnt, nd, &cifs_dfs_automount_list); out: