diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c index 645158dc33f1fc86bfcca570361002c540068584..63707abcbeb3e84b588b811d5c6113cf45bf4b70 100644 --- a/fs/exportfs/expfs.c +++ b/fs/exportfs/expfs.c @@ -77,7 +77,7 @@ static bool dentry_connected(struct dentry *dentry) struct dentry *parent = dget_parent(dentry); dput(dentry); - if (IS_ROOT(dentry)) { + if (dentry == parent) { dput(parent); return false; }