diff options
Diffstat (limited to 'fs/proc/namespaces.c')
-rw-r--r-- | fs/proc/namespaces.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/namespaces.c b/fs/proc/namespaces.c index 27da860115c6..3551f1f839eb 100644 --- a/fs/proc/namespaces.c +++ b/fs/proc/namespaces.c | |||
@@ -53,7 +53,7 @@ static struct dentry *proc_ns_instantiate(struct inode *dir, | |||
53 | ei->ns_ops = ns_ops; | 53 | ei->ns_ops = ns_ops; |
54 | ei->ns = ns; | 54 | ei->ns = ns; |
55 | 55 | ||
56 | dentry->d_op = &pid_dentry_operations; | 56 | d_set_d_op(dentry, &pid_dentry_operations); |
57 | d_add(dentry, inode); | 57 | d_add(dentry, inode); |
58 | /* Close the race of the process dying before we return the dentry */ | 58 | /* Close the race of the process dying before we return the dentry */ |
59 | if (pid_revalidate(dentry, NULL)) | 59 | if (pid_revalidate(dentry, NULL)) |