diff options
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r-- | fs/proc/base.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index d932fdb6a245..85f0a80912aa 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -1969,7 +1969,7 @@ static struct dentry *proc_fd_instantiate(struct inode *dir, | |||
1969 | inode->i_op = &proc_pid_link_inode_operations; | 1969 | inode->i_op = &proc_pid_link_inode_operations; |
1970 | inode->i_size = 64; | 1970 | inode->i_size = 64; |
1971 | ei->op.proc_get_link = proc_fd_link; | 1971 | ei->op.proc_get_link = proc_fd_link; |
1972 | dentry->d_op = &tid_fd_dentry_operations; | 1972 | d_set_d_op(dentry, &tid_fd_dentry_operations); |
1973 | d_add(dentry, inode); | 1973 | d_add(dentry, inode); |
1974 | /* Close the race of the process dying before we return the dentry */ | 1974 | /* Close the race of the process dying before we return the dentry */ |
1975 | if (tid_fd_revalidate(dentry, NULL)) | 1975 | if (tid_fd_revalidate(dentry, NULL)) |
@@ -2137,7 +2137,7 @@ static struct dentry *proc_fdinfo_instantiate(struct inode *dir, | |||
2137 | ei->fd = fd; | 2137 | ei->fd = fd; |
2138 | inode->i_mode = S_IFREG | S_IRUSR; | 2138 | inode->i_mode = S_IFREG | S_IRUSR; |
2139 | inode->i_fop = &proc_fdinfo_file_operations; | 2139 | inode->i_fop = &proc_fdinfo_file_operations; |
2140 | dentry->d_op = &tid_fd_dentry_operations; | 2140 | d_set_d_op(dentry, &tid_fd_dentry_operations); |
2141 | d_add(dentry, inode); | 2141 | d_add(dentry, inode); |
2142 | /* Close the race of the process dying before we return the dentry */ | 2142 | /* Close the race of the process dying before we return the dentry */ |
2143 | if (tid_fd_revalidate(dentry, NULL)) | 2143 | if (tid_fd_revalidate(dentry, NULL)) |
@@ -2196,7 +2196,7 @@ static struct dentry *proc_pident_instantiate(struct inode *dir, | |||
2196 | if (p->fop) | 2196 | if (p->fop) |
2197 | inode->i_fop = p->fop; | 2197 | inode->i_fop = p->fop; |
2198 | ei->op = p->op; | 2198 | ei->op = p->op; |
2199 | dentry->d_op = &pid_dentry_operations; | 2199 | d_set_d_op(dentry, &pid_dentry_operations); |
2200 | d_add(dentry, inode); | 2200 | d_add(dentry, inode); |
2201 | /* Close the race of the process dying before we return the dentry */ | 2201 | /* Close the race of the process dying before we return the dentry */ |
2202 | if (pid_revalidate(dentry, NULL)) | 2202 | if (pid_revalidate(dentry, NULL)) |
@@ -2615,7 +2615,7 @@ static struct dentry *proc_base_instantiate(struct inode *dir, | |||
2615 | if (p->fop) | 2615 | if (p->fop) |
2616 | inode->i_fop = p->fop; | 2616 | inode->i_fop = p->fop; |
2617 | ei->op = p->op; | 2617 | ei->op = p->op; |
2618 | dentry->d_op = &proc_base_dentry_operations; | 2618 | d_set_d_op(dentry, &proc_base_dentry_operations); |
2619 | d_add(dentry, inode); | 2619 | d_add(dentry, inode); |
2620 | error = NULL; | 2620 | error = NULL; |
2621 | out: | 2621 | out: |
@@ -2926,7 +2926,7 @@ static struct dentry *proc_pid_instantiate(struct inode *dir, | |||
2926 | inode->i_nlink = 2 + pid_entry_count_dirs(tgid_base_stuff, | 2926 | inode->i_nlink = 2 + pid_entry_count_dirs(tgid_base_stuff, |
2927 | ARRAY_SIZE(tgid_base_stuff)); | 2927 | ARRAY_SIZE(tgid_base_stuff)); |
2928 | 2928 | ||
2929 | dentry->d_op = &pid_dentry_operations; | 2929 | d_set_d_op(dentry, &pid_dentry_operations); |
2930 | 2930 | ||
2931 | d_add(dentry, inode); | 2931 | d_add(dentry, inode); |
2932 | /* Close the race of the process dying before we return the dentry */ | 2932 | /* Close the race of the process dying before we return the dentry */ |
@@ -3169,7 +3169,7 @@ static struct dentry *proc_task_instantiate(struct inode *dir, | |||
3169 | inode->i_nlink = 2 + pid_entry_count_dirs(tid_base_stuff, | 3169 | inode->i_nlink = 2 + pid_entry_count_dirs(tid_base_stuff, |
3170 | ARRAY_SIZE(tid_base_stuff)); | 3170 | ARRAY_SIZE(tid_base_stuff)); |
3171 | 3171 | ||
3172 | dentry->d_op = &pid_dentry_operations; | 3172 | d_set_d_op(dentry, &pid_dentry_operations); |
3173 | 3173 | ||
3174 | d_add(dentry, inode); | 3174 | d_add(dentry, inode); |
3175 | /* Close the race of the process dying before we return the dentry */ | 3175 | /* Close the race of the process dying before we return the dentry */ |