diff options
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r-- | fs/proc/base.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 8e4addaa5424..dc5d5f51f3fe 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -1151,6 +1151,7 @@ static ssize_t oom_score_adj_write(struct file *file, const char __user *buf, | |||
1151 | static const struct file_operations proc_oom_score_adj_operations = { | 1151 | static const struct file_operations proc_oom_score_adj_operations = { |
1152 | .read = oom_score_adj_read, | 1152 | .read = oom_score_adj_read, |
1153 | .write = oom_score_adj_write, | 1153 | .write = oom_score_adj_write, |
1154 | .llseek = default_llseek, | ||
1154 | }; | 1155 | }; |
1155 | 1156 | ||
1156 | #ifdef CONFIG_AUDITSYSCALL | 1157 | #ifdef CONFIG_AUDITSYSCALL |
@@ -2039,11 +2040,13 @@ static ssize_t proc_fdinfo_read(struct file *file, char __user *buf, | |||
2039 | static const struct file_operations proc_fdinfo_file_operations = { | 2040 | static const struct file_operations proc_fdinfo_file_operations = { |
2040 | .open = nonseekable_open, | 2041 | .open = nonseekable_open, |
2041 | .read = proc_fdinfo_read, | 2042 | .read = proc_fdinfo_read, |
2043 | .llseek = no_llseek, | ||
2042 | }; | 2044 | }; |
2043 | 2045 | ||
2044 | static const struct file_operations proc_fd_operations = { | 2046 | static const struct file_operations proc_fd_operations = { |
2045 | .read = generic_read_dir, | 2047 | .read = generic_read_dir, |
2046 | .readdir = proc_readfd, | 2048 | .readdir = proc_readfd, |
2049 | .llseek = default_llseek, | ||
2047 | }; | 2050 | }; |
2048 | 2051 | ||
2049 | /* | 2052 | /* |
@@ -2112,6 +2115,7 @@ static int proc_readfdinfo(struct file *filp, void *dirent, filldir_t filldir) | |||
2112 | static const struct file_operations proc_fdinfo_operations = { | 2115 | static const struct file_operations proc_fdinfo_operations = { |
2113 | .read = generic_read_dir, | 2116 | .read = generic_read_dir, |
2114 | .readdir = proc_readfdinfo, | 2117 | .readdir = proc_readfdinfo, |
2118 | .llseek = default_llseek, | ||
2115 | }; | 2119 | }; |
2116 | 2120 | ||
2117 | /* | 2121 | /* |
@@ -2343,6 +2347,7 @@ static int proc_attr_dir_readdir(struct file * filp, | |||
2343 | static const struct file_operations proc_attr_dir_operations = { | 2347 | static const struct file_operations proc_attr_dir_operations = { |
2344 | .read = generic_read_dir, | 2348 | .read = generic_read_dir, |
2345 | .readdir = proc_attr_dir_readdir, | 2349 | .readdir = proc_attr_dir_readdir, |
2350 | .llseek = default_llseek, | ||
2346 | }; | 2351 | }; |
2347 | 2352 | ||
2348 | static struct dentry *proc_attr_dir_lookup(struct inode *dir, | 2353 | static struct dentry *proc_attr_dir_lookup(struct inode *dir, |
@@ -2751,6 +2756,7 @@ static int proc_tgid_base_readdir(struct file * filp, | |||
2751 | static const struct file_operations proc_tgid_base_operations = { | 2756 | static const struct file_operations proc_tgid_base_operations = { |
2752 | .read = generic_read_dir, | 2757 | .read = generic_read_dir, |
2753 | .readdir = proc_tgid_base_readdir, | 2758 | .readdir = proc_tgid_base_readdir, |
2759 | .llseek = default_llseek, | ||
2754 | }; | 2760 | }; |
2755 | 2761 | ||
2756 | static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd){ | 2762 | static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd){ |
@@ -3088,6 +3094,7 @@ static struct dentry *proc_tid_base_lookup(struct inode *dir, struct dentry *den | |||
3088 | static const struct file_operations proc_tid_base_operations = { | 3094 | static const struct file_operations proc_tid_base_operations = { |
3089 | .read = generic_read_dir, | 3095 | .read = generic_read_dir, |
3090 | .readdir = proc_tid_base_readdir, | 3096 | .readdir = proc_tid_base_readdir, |
3097 | .llseek = default_llseek, | ||
3091 | }; | 3098 | }; |
3092 | 3099 | ||
3093 | static const struct inode_operations proc_tid_base_inode_operations = { | 3100 | static const struct inode_operations proc_tid_base_inode_operations = { |
@@ -3324,4 +3331,5 @@ static const struct inode_operations proc_task_inode_operations = { | |||
3324 | static const struct file_operations proc_task_operations = { | 3331 | static const struct file_operations proc_task_operations = { |
3325 | .read = generic_read_dir, | 3332 | .read = generic_read_dir, |
3326 | .readdir = proc_task_readdir, | 3333 | .readdir = proc_task_readdir, |
3334 | .llseek = default_llseek, | ||
3327 | }; | 3335 | }; |