forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
e0d508f109
commit
84c60b1388
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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, \
|
||||
|
|
|
@ -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, \
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user