drop redundant ->owner initializations
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 28 May 2016 02:40:31 +0000 (22:40 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 29 May 2016 23:08:00 +0000 (19:08 -0400)
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>
20 files changed:
fs/cachefiles/proc.c
fs/cifs/cifs_debug.c
fs/coda/pioctl.c
fs/ext4/mballoc.c
fs/ext4/sysfs.c
fs/f2fs/super.c
fs/fscache/histogram.c
fs/fscache/object-list.c
fs/fscache/stats.c
fs/jfs/jfs_debug.c
fs/jfs/jfs_logmgr.c
fs/jfs/jfs_metapage.c
fs/jfs/jfs_txnmgr.c
fs/jfs/jfs_xtree.c
fs/lockd/procfs.c
fs/nfs/client.c
fs/nfsd/nfsctl.c
fs/nfsd/stats.c
fs/pstore/inode.c
fs/xfs/xfs_stats.c

index eccd339..125b90f 100644 (file)
@@ -93,7 +93,6 @@ static int cachefiles_histogram_open(struct inode *inode, struct file *file)
 }
 
 static const struct file_operations cachefiles_histogram_fops = {
-       .owner          = THIS_MODULE,
        .open           = cachefiles_histogram_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
index 788e191..6c58e13 100644 (file)
@@ -244,7 +244,6 @@ static int cifs_debug_data_proc_open(struct inode *inode, struct file *file)
 }
 
 static const struct file_operations cifs_debug_data_proc_fops = {
-       .owner          = THIS_MODULE,
        .open           = cifs_debug_data_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
@@ -361,7 +360,6 @@ static int cifs_stats_proc_open(struct inode *inode, struct file *file)
 }
 
 static const struct file_operations cifs_stats_proc_fops = {
-       .owner          = THIS_MODULE,
        .open           = cifs_stats_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
@@ -447,7 +445,6 @@ static ssize_t cifsFYI_proc_write(struct file *file, const char __user *buffer,
 }
 
 static const struct file_operations cifsFYI_proc_fops = {
-       .owner          = THIS_MODULE,
        .open           = cifsFYI_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
@@ -479,7 +476,6 @@ static ssize_t cifs_linux_ext_proc_write(struct file *file,
 }
 
 static const struct file_operations cifs_linux_ext_proc_fops = {
-       .owner          = THIS_MODULE,
        .open           = cifs_linux_ext_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
@@ -511,7 +507,6 @@ static ssize_t cifs_lookup_cache_proc_write(struct file *file,
 }
 
 static const struct file_operations cifs_lookup_cache_proc_fops = {
-       .owner          = THIS_MODULE,
        .open           = cifs_lookup_cache_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
@@ -543,7 +538,6 @@ static ssize_t traceSMB_proc_write(struct file *file, const char __user *buffer,
 }
 
 static const struct file_operations traceSMB_proc_fops = {
-       .owner          = THIS_MODULE,
        .open           = traceSMB_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
@@ -655,7 +649,6 @@ static ssize_t cifs_security_flags_proc_write(struct file *file,
 }
 
 static const struct file_operations cifs_security_flags_proc_fops = {
-       .owner          = THIS_MODULE,
        .open           = cifs_security_flags_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
index f36a404..b0b9cda 100644 (file)
@@ -35,7 +35,6 @@ const struct inode_operations coda_ioctl_inode_operations = {
 };
 
 const struct file_operations coda_ioctl_operations = {
-       .owner          = THIS_MODULE,
        .unlocked_ioctl = coda_pioctl,
        .llseek         = noop_llseek,
 };
index c1ab3ec..57c9bf5 100644 (file)
@@ -2350,7 +2350,6 @@ static int ext4_mb_seq_groups_open(struct inode *inode, struct file *file)
 }
 
 const struct file_operations ext4_seq_mb_groups_fops = {
-       .owner          = THIS_MODULE,
        .open           = ext4_mb_seq_groups_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
index 1420a3c..73bcfd4 100644 (file)
@@ -359,7 +359,6 @@ static int name##_open(struct inode *inode, struct file *file) \
 } \
 \
 static const struct file_operations ext4_seq_##name##_fops = { \
-       .owner          = THIS_MODULE, \
        .open           = name##_open, \
        .read           = seq_read, \
        .llseek         = seq_lseek, \
index 74cc852..da58b96 100644 (file)
@@ -866,7 +866,6 @@ static int _name##_open_fs(struct inode *inode, struct file *file)  \
 }                                                                      \
                                                                        \
 static const struct file_operations f2fs_seq_##_name##_fops = {                \
-       .owner = THIS_MODULE,                                           \
        .open = _name##_open_fs,                                        \
        .read = seq_read,                                               \
        .llseek = seq_lseek,                                            \
index 7d637e2..15a3d04 100644 (file)
@@ -99,7 +99,6 @@ static int fscache_histogram_open(struct inode *inode, struct file *file)
 }
 
 const struct file_operations fscache_histogram_fops = {
-       .owner          = THIS_MODULE,
        .open           = fscache_histogram_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
index 6b028b7..5d5ddaa 100644 (file)
@@ -404,7 +404,6 @@ static int fscache_objlist_release(struct inode *inode, struct file *file)
 }
 
 const struct file_operations fscache_objlist_fops = {
-       .owner          = THIS_MODULE,
        .open           = fscache_objlist_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
index 7cfa0aa..7ac6e83 100644 (file)
@@ -295,7 +295,6 @@ static int fscache_stats_open(struct inode *inode, struct file *file)
 }
 
 const struct file_operations fscache_stats_fops = {
-       .owner          = THIS_MODULE,
        .open           = fscache_stats_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
index dd824d9..a37eb5f 100644 (file)
@@ -58,7 +58,6 @@ static ssize_t jfs_loglevel_proc_write(struct file *file,
 }
 
 static const struct file_operations jfs_loglevel_proc_fops = {
-       .owner          = THIS_MODULE,
        .open           = jfs_loglevel_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
index 63759d7..45416f6 100644 (file)
@@ -2515,7 +2515,6 @@ static int jfs_lmstats_proc_open(struct inode *inode, struct file *file)
 }
 
 const struct file_operations jfs_lmstats_proc_fops = {
-       .owner          = THIS_MODULE,
        .open           = jfs_lmstats_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
index b60e015..ba7734a 100644 (file)
@@ -828,7 +828,6 @@ static int jfs_mpstat_proc_open(struct inode *inode, struct file *file)
 }
 
 const struct file_operations jfs_mpstat_proc_fops = {
-       .owner          = THIS_MODULE,
        .open           = jfs_mpstat_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
index eddf2b6..2e58978 100644 (file)
@@ -3040,7 +3040,6 @@ static int jfs_txanchor_proc_open(struct inode *inode, struct file *file)
 }
 
 const struct file_operations jfs_txanchor_proc_fops = {
-       .owner          = THIS_MODULE,
        .open           = jfs_txanchor_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
@@ -3081,7 +3080,6 @@ static int jfs_txstats_proc_open(struct inode *inode, struct file *file)
 }
 
 const struct file_operations jfs_txstats_proc_fops = {
-       .owner          = THIS_MODULE,
        .open           = jfs_txstats_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
index 5ad7748..5cde6d2 100644 (file)
@@ -3894,7 +3894,6 @@ static int jfs_xtstat_proc_open(struct inode *inode, struct file *file)
 }
 
 const struct file_operations jfs_xtstat_proc_fops = {
-       .owner          = THIS_MODULE,
        .open           = jfs_xtstat_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
index 2a0a984..8f72cb2 100644 (file)
@@ -64,7 +64,6 @@ static const struct file_operations lockd_end_grace_operations = {
        .read           = nlm_end_grace_read,
        .llseek         = default_llseek,
        .release        = simple_transaction_release,
-       .owner          = THIS_MODULE,
 };
 
 int __init
index 0c96528..487c560 100644 (file)
@@ -1102,7 +1102,6 @@ static const struct file_operations nfs_server_list_fops = {
        .read           = seq_read,
        .llseek         = seq_lseek,
        .release        = seq_release_net,
-       .owner          = THIS_MODULE,
 };
 
 static int nfs_volume_list_open(struct inode *inode, struct file *file);
@@ -1123,7 +1122,6 @@ static const struct file_operations nfs_volume_list_fops = {
        .read           = seq_read,
        .llseek         = seq_lseek,
        .release        = seq_release_net,
-       .owner          = THIS_MODULE,
 };
 
 /*
index 9690cb4..e778777 100644 (file)
@@ -158,7 +158,6 @@ static const struct file_operations exports_proc_operations = {
        .read           = seq_read,
        .llseek         = seq_lseek,
        .release        = seq_release,
-       .owner          = THIS_MODULE,
 };
 
 static int exports_nfsd_open(struct inode *inode, struct file *file)
@@ -171,7 +170,6 @@ static const struct file_operations exports_nfsd_operations = {
        .read           = seq_read,
        .llseek         = seq_lseek,
        .release        = seq_release,
-       .owner          = THIS_MODULE,
 };
 
 static int export_features_show(struct seq_file *m, void *v)
@@ -217,7 +215,6 @@ static const struct file_operations pool_stats_operations = {
        .read           = seq_read,
        .llseek         = seq_lseek,
        .release        = nfsd_pool_stats_release,
-       .owner          = THIS_MODULE,
 };
 
 static struct file_operations reply_cache_stats_operations = {
index cd90878..d97338b 100644 (file)
@@ -84,7 +84,6 @@ static int nfsd_proc_open(struct inode *inode, struct file *file)
 }
 
 static const struct file_operations nfsd_proc_fops = {
-       .owner = THIS_MODULE,
        .open = nfsd_proc_open,
        .read  = seq_read,
        .llseek = seq_lseek,
index 45d6110..ec9ddef 100644 (file)
@@ -178,7 +178,6 @@ static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence)
 }
 
 static const struct file_operations pstore_file_operations = {
-       .owner          = THIS_MODULE,
        .open           = pstore_file_open,
        .read           = pstore_file_read,
        .llseek         = pstore_file_llseek,
index 8686df6..d266e83 100644 (file)
@@ -128,7 +128,6 @@ static int xqm_proc_open(struct inode *inode, struct file *file)
 }
 
 static const struct file_operations xqm_proc_fops = {
-       .owner          = THIS_MODULE,
        .open           = xqm_proc_open,
        .read           = seq_read,
        .llseek         = seq_lseek,