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 3/3 RESEND] nfsd: use follow_up_bind() helper
Date
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
---
fs/nfsd/vfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index a3c9bfa77def..52e64036d2bd 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -141,8 +141,8 @@ static void follow_to_parent(struct path *path)
{
struct dentry *dp;

- while (path->dentry == path->mnt->mnt_root && follow_up(path))
- ;
+ follow_up_bind(path);
+
dp = dget_parent(path->dentry);
dput(path->dentry);
path->dentry = dp;
--
2.15.1
\
 
 \ /
  Last update: 2018-04-05 12:52    [W:0.047 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site