lkml.org 
[lkml]   [2018]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/3 RESEND] devpts: use follow_up_bind() helper
Date
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.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
\
 
 \ /
  Last update: 2018-04-05 12:51    [W:0.550 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site