aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-05-27 22:40:31 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-29 19:08:00 -0400
commit84c60b1388249a0167d5fe8160f84e66a1221ba8 (patch)
treefb1f798db05b349733563e4a317c5a7e1be68f41
parente0d508f1092db9a56cc6ed617f473a2704f7f683 (diff)
drop redundant ->owner initializations
it's not needed for file_operations of inodes located on fs defined in the hosting module and for file_operations that go into procfs. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/cachefiles/proc.c1
-rw-r--r--fs/cifs/cifs_debug.c7
-rw-r--r--fs/coda/pioctl.c1
-rw-r--r--fs/ext4/mballoc.c1
-rw-r--r--fs/ext4/sysfs.c1
-rw-r--r--fs/f2fs/super.c1
-rw-r--r--fs/fscache/histogram.c1
-rw-r--r--fs/fscache/object-list.c1
-rw-r--r--fs/fscache/stats.c1
-rw-r--r--fs/jfs/jfs_debug.c1
-rw-r--r--fs/jfs/jfs_logmgr.c1
-rw-r--r--fs/jfs/jfs_metapage.c1
-rw-r--r--fs/jfs/jfs_txnmgr.c2
-rw-r--r--fs/jfs/jfs_xtree.c1
-rw-r--r--fs/lockd/procfs.c1
-rw-r--r--fs/nfs/client.c2
-rw-r--r--fs/nfsd/nfsctl.c3
-rw-r--r--fs/nfsd/stats.c1
-rw-r--r--fs/pstore/inode.c1
-rw-r--r--fs/xfs/xfs_stats.c1
20 files changed, 0 insertions, 30 deletions
diff --git a/fs/cachefiles/proc.c b/fs/cachefiles/proc.c
index eccd33941199..125b90f6c796 100644
--- a/fs/cachefiles/proc.c
+++ b/fs/cachefiles/proc.c
@@ -93,7 +93,6 @@ static int cachefiles_histogram_open(struct inode *inode, struct file *file)
93} 93}
94 94
95static const struct file_operations cachefiles_histogram_fops = { 95static const struct file_operations cachefiles_histogram_fops = {
96 .owner = THIS_MODULE,
97 .open = cachefiles_histogram_open, 96 .open = cachefiles_histogram_open,
98 .read = seq_read, 97 .read = seq_read,
99 .llseek = seq_lseek, 98 .llseek = seq_lseek,
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c
index 788e19195991..6c58e13fed2f 100644
--- a/fs/cifs/cifs_debug.c
+++ b/fs/cifs/cifs_debug.c
@@ -244,7 +244,6 @@ static int cifs_debug_data_proc_open(struct inode *inode, struct file *file)
244} 244}
245 245
246static const struct file_operations cifs_debug_data_proc_fops = { 246static const struct file_operations cifs_debug_data_proc_fops = {
247 .owner = THIS_MODULE,
248 .open = cifs_debug_data_proc_open, 247 .open = cifs_debug_data_proc_open,
249 .read = seq_read, 248 .read = seq_read,
250 .llseek = seq_lseek, 249 .llseek = seq_lseek,
@@ -361,7 +360,6 @@ static int cifs_stats_proc_open(struct inode *inode, struct file *file)
361} 360}
362 361
363static const struct file_operations cifs_stats_proc_fops = { 362static const struct file_operations cifs_stats_proc_fops = {
364 .owner = THIS_MODULE,
365 .open = cifs_stats_proc_open, 363 .open = cifs_stats_proc_open,
366 .read = seq_read, 364 .read = seq_read,
367 .llseek = seq_lseek, 365 .llseek = seq_lseek,
@@ -447,7 +445,6 @@ static ssize_t cifsFYI_proc_write(struct file *file, const char __user *buffer,
447} 445}
448 446
449static const struct file_operations cifsFYI_proc_fops = { 447static const struct file_operations cifsFYI_proc_fops = {
450 .owner = THIS_MODULE,
451 .open = cifsFYI_proc_open, 448 .open = cifsFYI_proc_open,
452 .read = seq_read, 449 .read = seq_read,
453 .llseek = seq_lseek, 450 .llseek = seq_lseek,
@@ -479,7 +476,6 @@ static ssize_t cifs_linux_ext_proc_write(struct file *file,
479} 476}
480 477
481static const struct file_operations cifs_linux_ext_proc_fops = { 478static const struct file_operations cifs_linux_ext_proc_fops = {
482 .owner = THIS_MODULE,
483 .open = cifs_linux_ext_proc_open, 479 .open = cifs_linux_ext_proc_open,
484 .read = seq_read, 480 .read = seq_read,
485 .llseek = seq_lseek, 481 .llseek = seq_lseek,
@@ -511,7 +507,6 @@ static ssize_t cifs_lookup_cache_proc_write(struct file *file,
511} 507}
512 508
513static const struct file_operations cifs_lookup_cache_proc_fops = { 509static const struct file_operations cifs_lookup_cache_proc_fops = {
514 .owner = THIS_MODULE,
515 .open = cifs_lookup_cache_proc_open, 510 .open = cifs_lookup_cache_proc_open,
516 .read = seq_read, 511 .read = seq_read,
517 .llseek = seq_lseek, 512 .llseek = seq_lseek,
@@ -543,7 +538,6 @@ static ssize_t traceSMB_proc_write(struct file *file, const char __user *buffer,
543} 538}
544 539
545static const struct file_operations traceSMB_proc_fops = { 540static const struct file_operations traceSMB_proc_fops = {
546 .owner = THIS_MODULE,
547 .open = traceSMB_proc_open, 541 .open = traceSMB_proc_open,
548 .read = seq_read, 542 .read = seq_read,
549 .llseek = seq_lseek, 543 .llseek = seq_lseek,
@@ -655,7 +649,6 @@ static ssize_t cifs_security_flags_proc_write(struct file *file,
655} 649}
656 650
657static const struct file_operations cifs_security_flags_proc_fops = { 651static const struct file_operations cifs_security_flags_proc_fops = {
658 .owner = THIS_MODULE,
659 .open = cifs_security_flags_proc_open, 652 .open = cifs_security_flags_proc_open,
660 .read = seq_read, 653 .read = seq_read,
661 .llseek = seq_lseek, 654 .llseek = seq_lseek,
diff --git a/fs/coda/pioctl.c b/fs/coda/pioctl.c
index f36a4040afb8..b0b9cda41928 100644
--- a/fs/coda/pioctl.c
+++ b/fs/coda/pioctl.c
@@ -35,7 +35,6 @@ const struct inode_operations coda_ioctl_inode_operations = {
35}; 35};
36 36
37const struct file_operations coda_ioctl_operations = { 37const struct file_operations coda_ioctl_operations = {
38 .owner = THIS_MODULE,
39 .unlocked_ioctl = coda_pioctl, 38 .unlocked_ioctl = coda_pioctl,
40 .llseek = noop_llseek, 39 .llseek = noop_llseek,
41}; 40};
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index c1ab3ec30423..57c9bf5356d1 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2350,7 +2350,6 @@ static int ext4_mb_seq_groups_open(struct inode *inode, struct file *file)
2350} 2350}
2351 2351
2352const struct file_operations ext4_seq_mb_groups_fops = { 2352const struct file_operations ext4_seq_mb_groups_fops = {
2353 .owner = THIS_MODULE,
2354 .open = ext4_mb_seq_groups_open, 2353 .open = ext4_mb_seq_groups_open,
2355 .read = seq_read, 2354 .read = seq_read,
2356 .llseek = seq_lseek, 2355 .llseek = seq_lseek,
diff --git a/fs/ext4/sysfs.c b/fs/ext4/sysfs.c
index 1420a3c614af..73bcfd41f5f2 100644
--- a/fs/ext4/sysfs.c
+++ b/fs/ext4/sysfs.c
@@ -359,7 +359,6 @@ static int name##_open(struct inode *inode, struct file *file) \
359} \ 359} \
360\ 360\
361static const struct file_operations ext4_seq_##name##_fops = { \ 361static const struct file_operations ext4_seq_##name##_fops = { \
362 .owner = THIS_MODULE, \
363 .open = name##_open, \ 362 .open = name##_open, \
364 .read = seq_read, \ 363 .read = seq_read, \
365 .llseek = seq_lseek, \ 364 .llseek = seq_lseek, \
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 74cc8520b8b1..da58b9671d1e 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -866,7 +866,6 @@ static int _name##_open_fs(struct inode *inode, struct file *file) \
866} \ 866} \
867 \ 867 \
868static const struct file_operations f2fs_seq_##_name##_fops = { \ 868static const struct file_operations f2fs_seq_##_name##_fops = { \
869 .owner = THIS_MODULE, \
870 .open = _name##_open_fs, \ 869 .open = _name##_open_fs, \
871 .read = seq_read, \ 870 .read = seq_read, \
872 .llseek = seq_lseek, \ 871 .llseek = seq_lseek, \
diff --git a/fs/fscache/histogram.c b/fs/fscache/histogram.c
index 7d637e2335fd..15a3d042247e 100644
--- a/fs/fscache/histogram.c
+++ b/fs/fscache/histogram.c
@@ -99,7 +99,6 @@ static int fscache_histogram_open(struct inode *inode, struct file *file)
99} 99}
100 100
101const struct file_operations fscache_histogram_fops = { 101const struct file_operations fscache_histogram_fops = {
102 .owner = THIS_MODULE,
103 .open = fscache_histogram_open, 102 .open = fscache_histogram_open,
104 .read = seq_read, 103 .read = seq_read,
105 .llseek = seq_lseek, 104 .llseek = seq_lseek,
diff --git a/fs/fscache/object-list.c b/fs/fscache/object-list.c
index 6b028b7c4250..5d5ddaa84b21 100644
--- a/fs/fscache/object-list.c
+++ b/fs/fscache/object-list.c
@@ -404,7 +404,6 @@ static int fscache_objlist_release(struct inode *inode, struct file *file)
404} 404}
405 405
406const struct file_operations fscache_objlist_fops = { 406const struct file_operations fscache_objlist_fops = {
407 .owner = THIS_MODULE,
408 .open = fscache_objlist_open, 407 .open = fscache_objlist_open,
409 .read = seq_read, 408 .read = seq_read,
410 .llseek = seq_lseek, 409 .llseek = seq_lseek,
diff --git a/fs/fscache/stats.c b/fs/fscache/stats.c
index 7cfa0aacdf6d..7ac6e839b065 100644
--- a/fs/fscache/stats.c
+++ b/fs/fscache/stats.c
@@ -295,7 +295,6 @@ static int fscache_stats_open(struct inode *inode, struct file *file)
295} 295}
296 296
297const struct file_operations fscache_stats_fops = { 297const struct file_operations fscache_stats_fops = {
298 .owner = THIS_MODULE,
299 .open = fscache_stats_open, 298 .open = fscache_stats_open,
300 .read = seq_read, 299 .read = seq_read,
301 .llseek = seq_lseek, 300 .llseek = seq_lseek,
diff --git a/fs/jfs/jfs_debug.c b/fs/jfs/jfs_debug.c
index dd824d9b0b1a..a37eb5f8cbc0 100644
--- a/fs/jfs/jfs_debug.c
+++ b/fs/jfs/jfs_debug.c
@@ -58,7 +58,6 @@ static ssize_t jfs_loglevel_proc_write(struct file *file,
58} 58}
59 59
60static const struct file_operations jfs_loglevel_proc_fops = { 60static const struct file_operations jfs_loglevel_proc_fops = {
61 .owner = THIS_MODULE,
62 .open = jfs_loglevel_proc_open, 61 .open = jfs_loglevel_proc_open,
63 .read = seq_read, 62 .read = seq_read,
64 .llseek = seq_lseek, 63 .llseek = seq_lseek,
diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c
index 63759d723920..45416f6611cf 100644
--- a/fs/jfs/jfs_logmgr.c
+++ b/fs/jfs/jfs_logmgr.c
@@ -2515,7 +2515,6 @@ static int jfs_lmstats_proc_open(struct inode *inode, struct file *file)
2515} 2515}
2516 2516
2517const struct file_operations jfs_lmstats_proc_fops = { 2517const struct file_operations jfs_lmstats_proc_fops = {
2518 .owner = THIS_MODULE,
2519 .open = jfs_lmstats_proc_open, 2518 .open = jfs_lmstats_proc_open,
2520 .read = seq_read, 2519 .read = seq_read,
2521 .llseek = seq_lseek, 2520 .llseek = seq_lseek,
diff --git a/fs/jfs/jfs_metapage.c b/fs/jfs/jfs_metapage.c
index b60e015cc757..ba7734ae9d4c 100644
--- a/fs/jfs/jfs_metapage.c
+++ b/fs/jfs/jfs_metapage.c
@@ -828,7 +828,6 @@ static int jfs_mpstat_proc_open(struct inode *inode, struct file *file)
828} 828}
829 829
830const struct file_operations jfs_mpstat_proc_fops = { 830const struct file_operations jfs_mpstat_proc_fops = {
831 .owner = THIS_MODULE,
832 .open = jfs_mpstat_proc_open, 831 .open = jfs_mpstat_proc_open,
833 .read = seq_read, 832 .read = seq_read,
834 .llseek = seq_lseek, 833 .llseek = seq_lseek,
diff --git a/fs/jfs/jfs_txnmgr.c b/fs/jfs/jfs_txnmgr.c
index eddf2b6eda85..2e58978d6f45 100644
--- a/fs/jfs/jfs_txnmgr.c
+++ b/fs/jfs/jfs_txnmgr.c
@@ -3040,7 +3040,6 @@ static int jfs_txanchor_proc_open(struct inode *inode, struct file *file)
3040} 3040}
3041 3041
3042const struct file_operations jfs_txanchor_proc_fops = { 3042const struct file_operations jfs_txanchor_proc_fops = {
3043 .owner = THIS_MODULE,
3044 .open = jfs_txanchor_proc_open, 3043 .open = jfs_txanchor_proc_open,
3045 .read = seq_read, 3044 .read = seq_read,
3046 .llseek = seq_lseek, 3045 .llseek = seq_lseek,
@@ -3081,7 +3080,6 @@ static int jfs_txstats_proc_open(struct inode *inode, struct file *file)
3081} 3080}
3082 3081
3083const struct file_operations jfs_txstats_proc_fops = { 3082const struct file_operations jfs_txstats_proc_fops = {
3084 .owner = THIS_MODULE,
3085 .open = jfs_txstats_proc_open, 3083 .open = jfs_txstats_proc_open,
3086 .read = seq_read, 3084 .read = seq_read,
3087 .llseek = seq_lseek, 3085 .llseek = seq_lseek,
diff --git a/fs/jfs/jfs_xtree.c b/fs/jfs/jfs_xtree.c
index 5ad7748860ce..5cde6d2fcfca 100644
--- a/fs/jfs/jfs_xtree.c
+++ b/fs/jfs/jfs_xtree.c
@@ -3894,7 +3894,6 @@ static int jfs_xtstat_proc_open(struct inode *inode, struct file *file)
3894} 3894}
3895 3895
3896const struct file_operations jfs_xtstat_proc_fops = { 3896const struct file_operations jfs_xtstat_proc_fops = {
3897 .owner = THIS_MODULE,
3898 .open = jfs_xtstat_proc_open, 3897 .open = jfs_xtstat_proc_open,
3899 .read = seq_read, 3898 .read = seq_read,
3900 .llseek = seq_lseek, 3899 .llseek = seq_lseek,
diff --git a/fs/lockd/procfs.c b/fs/lockd/procfs.c
index 2a0a98480e39..8f72cb237ef3 100644
--- a/fs/lockd/procfs.c
+++ b/fs/lockd/procfs.c
@@ -64,7 +64,6 @@ static const struct file_operations lockd_end_grace_operations = {
64 .read = nlm_end_grace_read, 64 .read = nlm_end_grace_read,
65 .llseek = default_llseek, 65 .llseek = default_llseek,
66 .release = simple_transaction_release, 66 .release = simple_transaction_release,
67 .owner = THIS_MODULE,
68}; 67};
69 68
70int __init 69int __init
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 0c96528db94a..487c5607d52f 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -1102,7 +1102,6 @@ static const struct file_operations nfs_server_list_fops = {
1102 .read = seq_read, 1102 .read = seq_read,
1103 .llseek = seq_lseek, 1103 .llseek = seq_lseek,
1104 .release = seq_release_net, 1104 .release = seq_release_net,
1105 .owner = THIS_MODULE,
1106}; 1105};
1107 1106
1108static int nfs_volume_list_open(struct inode *inode, struct file *file); 1107static int nfs_volume_list_open(struct inode *inode, struct file *file);
@@ -1123,7 +1122,6 @@ static const struct file_operations nfs_volume_list_fops = {
1123 .read = seq_read, 1122 .read = seq_read,
1124 .llseek = seq_lseek, 1123 .llseek = seq_lseek,
1125 .release = seq_release_net, 1124 .release = seq_release_net,
1126 .owner = THIS_MODULE,
1127}; 1125};
1128 1126
1129/* 1127/*
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index 9690cb4dd588..e7787777620e 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -158,7 +158,6 @@ static const struct file_operations exports_proc_operations = {
158 .read = seq_read, 158 .read = seq_read,
159 .llseek = seq_lseek, 159 .llseek = seq_lseek,
160 .release = seq_release, 160 .release = seq_release,
161 .owner = THIS_MODULE,
162}; 161};
163 162
164static int exports_nfsd_open(struct inode *inode, struct file *file) 163static int exports_nfsd_open(struct inode *inode, struct file *file)
@@ -171,7 +170,6 @@ static const struct file_operations exports_nfsd_operations = {
171 .read = seq_read, 170 .read = seq_read,
172 .llseek = seq_lseek, 171 .llseek = seq_lseek,
173 .release = seq_release, 172 .release = seq_release,
174 .owner = THIS_MODULE,
175}; 173};
176 174
177static int export_features_show(struct seq_file *m, void *v) 175static int export_features_show(struct seq_file *m, void *v)
@@ -217,7 +215,6 @@ static const struct file_operations pool_stats_operations = {
217 .read = seq_read, 215 .read = seq_read,
218 .llseek = seq_lseek, 216 .llseek = seq_lseek,
219 .release = nfsd_pool_stats_release, 217 .release = nfsd_pool_stats_release,
220 .owner = THIS_MODULE,
221}; 218};
222 219
223static struct file_operations reply_cache_stats_operations = { 220static struct file_operations reply_cache_stats_operations = {
diff --git a/fs/nfsd/stats.c b/fs/nfsd/stats.c
index cd90878a76aa..d97338bb6a39 100644
--- a/fs/nfsd/stats.c
+++ b/fs/nfsd/stats.c
@@ -84,7 +84,6 @@ static int nfsd_proc_open(struct inode *inode, struct file *file)
84} 84}
85 85
86static const struct file_operations nfsd_proc_fops = { 86static const struct file_operations nfsd_proc_fops = {
87 .owner = THIS_MODULE,
88 .open = nfsd_proc_open, 87 .open = nfsd_proc_open,
89 .read = seq_read, 88 .read = seq_read,
90 .llseek = seq_lseek, 89 .llseek = seq_lseek,
diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c
index 45d6110744cb..ec9ddef5ae75 100644
--- a/fs/pstore/inode.c
+++ b/fs/pstore/inode.c
@@ -178,7 +178,6 @@ static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence)
178} 178}
179 179
180static const struct file_operations pstore_file_operations = { 180static const struct file_operations pstore_file_operations = {
181 .owner = THIS_MODULE,
182 .open = pstore_file_open, 181 .open = pstore_file_open,
183 .read = pstore_file_read, 182 .read = pstore_file_read,
184 .llseek = pstore_file_llseek, 183 .llseek = pstore_file_llseek,
diff --git a/fs/xfs/xfs_stats.c b/fs/xfs/xfs_stats.c
index 8686df6c7609..d266e835ecc3 100644
--- a/fs/xfs/xfs_stats.c
+++ b/fs/xfs/xfs_stats.c
@@ -128,7 +128,6 @@ static int xqm_proc_open(struct inode *inode, struct file *file)
128} 128}
129 129
130static const struct file_operations xqm_proc_fops = { 130static const struct file_operations xqm_proc_fops = {
131 .owner = THIS_MODULE,
132 .open = xqm_proc_open, 131 .open = xqm_proc_open,
133 .read = seq_read, 132 .read = seq_read,
134 .llseek = seq_lseek, 133 .llseek = seq_lseek,