[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180405105103.21572-3-christian.brauner@ubuntu.com>
Date: Thu, 5 Apr 2018 12:51:02 +0200
From: Christian Brauner <christian.brauner@...ntu.com>
To: torvalds@...ux-foundation.org, viro@...iv.linux.org.uk,
ebiederm@...ssion.com, linux-kernel@...r.kernel.org
Cc: Christian Brauner <christian.brauner@...ntu.com>
Subject: [PATCH 2/3 RESEND] devpts: use follow_up_bind() helper
Signed-off-by: Christian Brauner <christian.brauner@...ntu.com>
---
fs/devpts/inode.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c
index e072e955ce33..5e516846074e 100644
--- a/fs/devpts/inode.c
+++ b/fs/devpts/inode.c
@@ -181,9 +181,7 @@ struct vfsmount *devpts_mntget(struct file *filp, struct pts_fs_info *fsi)
/* Walk upward while the start point is a bind mount of
* a single file.
*/
- while (path.mnt->mnt_root == path.dentry)
- if (follow_up(&path) == 0)
- break;
+ follow_up_bind(&path);
/* devpts_ptmx_path() finds a devpts fs or returns an error. */
if ((path.mnt->mnt_sb->s_magic != DEVPTS_SUPER_MAGIC) ||
--
2.15.1
Powered by blists - more mailing lists