diff --git a/fs/namei.c b/fs/namei.c index 5973103b70466b4bb0b3aeab10f1b4ebc64b08f6..22c78b3bc710549d3effb2519faeeb87dc2ad480 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1237,6 +1237,7 @@ static int follow_managed(struct path *path, struct nameidata *nd) BUG_ON(!path->dentry->d_op); BUG_ON(!path->dentry->d_op->d_manage); ret = path->dentry->d_op->d_manage(path, false); + flags = smp_load_acquire(&path->dentry->d_flags); if (ret < 0) break; }