diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-04-20 17:13:54 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-02 19:49:30 -0400 |
commit | f50752eaa0b0be05431897a973b2ab05229cc2f5 (patch) | |
tree | ed6217b315639bdfad2b1af6869a0dad944000bb | |
parent | 76aab3ab61f3051362f20fc26e2c50a65d6ba904 (diff) |
switch all procfs directories ->iterate_shared()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/proc/base.c | 20 | ||||
-rw-r--r-- | fs/proc/fd.c | 8 | ||||
-rw-r--r-- | fs/proc/generic.c | 2 | ||||
-rw-r--r-- | fs/proc/namespaces.c | 3 | ||||
-rw-r--r-- | fs/proc/proc_net.c | 2 | ||||
-rw-r--r-- | fs/proc/proc_sysctl.c | 2 | ||||
-rw-r--r-- | fs/proc/root.c | 4 |
7 files changed, 21 insertions, 20 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 15b60f1a346d..beb45d47bf77 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -2159,8 +2159,8 @@ out: | |||
2159 | 2159 | ||
2160 | static const struct file_operations proc_map_files_operations = { | 2160 | static const struct file_operations proc_map_files_operations = { |
2161 | .read = generic_read_dir, | 2161 | .read = generic_read_dir, |
2162 | .iterate = proc_map_files_readdir, | 2162 | .iterate_shared = proc_map_files_readdir, |
2163 | .llseek = default_llseek, | 2163 | .llseek = generic_file_llseek, |
2164 | }; | 2164 | }; |
2165 | 2165 | ||
2166 | #ifdef CONFIG_CHECKPOINT_RESTORE | 2166 | #ifdef CONFIG_CHECKPOINT_RESTORE |
@@ -2507,8 +2507,8 @@ static int proc_attr_dir_readdir(struct file *file, struct dir_context *ctx) | |||
2507 | 2507 | ||
2508 | static const struct file_operations proc_attr_dir_operations = { | 2508 | static const struct file_operations proc_attr_dir_operations = { |
2509 | .read = generic_read_dir, | 2509 | .read = generic_read_dir, |
2510 | .iterate = proc_attr_dir_readdir, | 2510 | .iterate_shared = proc_attr_dir_readdir, |
2511 | .llseek = default_llseek, | 2511 | .llseek = generic_file_llseek, |
2512 | }; | 2512 | }; |
2513 | 2513 | ||
2514 | static struct dentry *proc_attr_dir_lookup(struct inode *dir, | 2514 | static struct dentry *proc_attr_dir_lookup(struct inode *dir, |
@@ -2915,8 +2915,8 @@ static int proc_tgid_base_readdir(struct file *file, struct dir_context *ctx) | |||
2915 | 2915 | ||
2916 | static const struct file_operations proc_tgid_base_operations = { | 2916 | static const struct file_operations proc_tgid_base_operations = { |
2917 | .read = generic_read_dir, | 2917 | .read = generic_read_dir, |
2918 | .iterate = proc_tgid_base_readdir, | 2918 | .iterate_shared = proc_tgid_base_readdir, |
2919 | .llseek = default_llseek, | 2919 | .llseek = generic_file_llseek, |
2920 | }; | 2920 | }; |
2921 | 2921 | ||
2922 | static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) | 2922 | static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) |
@@ -3263,8 +3263,8 @@ static struct dentry *proc_tid_base_lookup(struct inode *dir, struct dentry *den | |||
3263 | 3263 | ||
3264 | static const struct file_operations proc_tid_base_operations = { | 3264 | static const struct file_operations proc_tid_base_operations = { |
3265 | .read = generic_read_dir, | 3265 | .read = generic_read_dir, |
3266 | .iterate = proc_tid_base_readdir, | 3266 | .iterate_shared = proc_tid_base_readdir, |
3267 | .llseek = default_llseek, | 3267 | .llseek = generic_file_llseek, |
3268 | }; | 3268 | }; |
3269 | 3269 | ||
3270 | static const struct inode_operations proc_tid_base_inode_operations = { | 3270 | static const struct inode_operations proc_tid_base_inode_operations = { |
@@ -3474,6 +3474,6 @@ static const struct inode_operations proc_task_inode_operations = { | |||
3474 | 3474 | ||
3475 | static const struct file_operations proc_task_operations = { | 3475 | static const struct file_operations proc_task_operations = { |
3476 | .read = generic_read_dir, | 3476 | .read = generic_read_dir, |
3477 | .iterate = proc_task_readdir, | 3477 | .iterate_shared = proc_task_readdir, |
3478 | .llseek = default_llseek, | 3478 | .llseek = generic_file_llseek, |
3479 | }; | 3479 | }; |
diff --git a/fs/proc/fd.c b/fs/proc/fd.c index 56afa5ef08f2..01df23cc81f6 100644 --- a/fs/proc/fd.c +++ b/fs/proc/fd.c | |||
@@ -276,8 +276,8 @@ static int proc_readfd(struct file *file, struct dir_context *ctx) | |||
276 | 276 | ||
277 | const struct file_operations proc_fd_operations = { | 277 | const struct file_operations proc_fd_operations = { |
278 | .read = generic_read_dir, | 278 | .read = generic_read_dir, |
279 | .iterate = proc_readfd, | 279 | .iterate_shared = proc_readfd, |
280 | .llseek = default_llseek, | 280 | .llseek = generic_file_llseek, |
281 | }; | 281 | }; |
282 | 282 | ||
283 | static struct dentry *proc_lookupfd(struct inode *dir, struct dentry *dentry, | 283 | static struct dentry *proc_lookupfd(struct inode *dir, struct dentry *dentry, |
@@ -361,6 +361,6 @@ const struct inode_operations proc_fdinfo_inode_operations = { | |||
361 | 361 | ||
362 | const struct file_operations proc_fdinfo_operations = { | 362 | const struct file_operations proc_fdinfo_operations = { |
363 | .read = generic_read_dir, | 363 | .read = generic_read_dir, |
364 | .iterate = proc_readfdinfo, | 364 | .iterate_shared = proc_readfdinfo, |
365 | .llseek = default_llseek, | 365 | .llseek = generic_file_llseek, |
366 | }; | 366 | }; |
diff --git a/fs/proc/generic.c b/fs/proc/generic.c index ff3ffc76a937..c633476616e0 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c | |||
@@ -318,7 +318,7 @@ int proc_readdir(struct file *file, struct dir_context *ctx) | |||
318 | static const struct file_operations proc_dir_operations = { | 318 | static const struct file_operations proc_dir_operations = { |
319 | .llseek = generic_file_llseek, | 319 | .llseek = generic_file_llseek, |
320 | .read = generic_read_dir, | 320 | .read = generic_read_dir, |
321 | .iterate = proc_readdir, | 321 | .iterate_shared = proc_readdir, |
322 | }; | 322 | }; |
323 | 323 | ||
324 | /* | 324 | /* |
diff --git a/fs/proc/namespaces.c b/fs/proc/namespaces.c index 72cb26f85d58..51b8b0a8ad91 100644 --- a/fs/proc/namespaces.c +++ b/fs/proc/namespaces.c | |||
@@ -139,7 +139,8 @@ out: | |||
139 | 139 | ||
140 | const struct file_operations proc_ns_dir_operations = { | 140 | const struct file_operations proc_ns_dir_operations = { |
141 | .read = generic_read_dir, | 141 | .read = generic_read_dir, |
142 | .iterate = proc_ns_dir_readdir, | 142 | .iterate_shared = proc_ns_dir_readdir, |
143 | .llseek = generic_file_llseek, | ||
143 | }; | 144 | }; |
144 | 145 | ||
145 | static struct dentry *proc_ns_dir_lookup(struct inode *dir, | 146 | static struct dentry *proc_ns_dir_lookup(struct inode *dir, |
diff --git a/fs/proc/proc_net.c b/fs/proc/proc_net.c index 350984a19c83..c8bbc68cdb05 100644 --- a/fs/proc/proc_net.c +++ b/fs/proc/proc_net.c | |||
@@ -179,7 +179,7 @@ static int proc_tgid_net_readdir(struct file *file, struct dir_context *ctx) | |||
179 | const struct file_operations proc_net_operations = { | 179 | const struct file_operations proc_net_operations = { |
180 | .llseek = generic_file_llseek, | 180 | .llseek = generic_file_llseek, |
181 | .read = generic_read_dir, | 181 | .read = generic_read_dir, |
182 | .iterate = proc_tgid_net_readdir, | 182 | .iterate_shared = proc_tgid_net_readdir, |
183 | }; | 183 | }; |
184 | 184 | ||
185 | static __net_init int proc_net_ns_init(struct net *net) | 185 | static __net_init int proc_net_ns_init(struct net *net) |
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index d69e2385862c..5e57c3e46e1d 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -790,7 +790,7 @@ static const struct file_operations proc_sys_file_operations = { | |||
790 | 790 | ||
791 | static const struct file_operations proc_sys_dir_file_operations = { | 791 | static const struct file_operations proc_sys_dir_file_operations = { |
792 | .read = generic_read_dir, | 792 | .read = generic_read_dir, |
793 | .iterate = proc_sys_readdir, | 793 | .iterate_shared = proc_sys_readdir, |
794 | .llseek = generic_file_llseek, | 794 | .llseek = generic_file_llseek, |
795 | }; | 795 | }; |
796 | 796 | ||
diff --git a/fs/proc/root.c b/fs/proc/root.c index 361ab4ee42fc..55bc7d6c8aac 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c | |||
@@ -226,8 +226,8 @@ static int proc_root_readdir(struct file *file, struct dir_context *ctx) | |||
226 | */ | 226 | */ |
227 | static const struct file_operations proc_root_operations = { | 227 | static const struct file_operations proc_root_operations = { |
228 | .read = generic_read_dir, | 228 | .read = generic_read_dir, |
229 | .iterate = proc_root_readdir, | 229 | .iterate_shared = proc_root_readdir, |
230 | .llseek = default_llseek, | 230 | .llseek = generic_file_llseek, |
231 | }; | 231 | }; |
232 | 232 | ||
233 | /* | 233 | /* |