|
@@ -467,6 +467,7 @@ static const struct file_operations r_file_operations = {
|
|
|
.read = seq_read,
|
|
|
.llseek = seq_lseek,
|
|
|
.release = seq_release,
|
|
|
+ .owner = THIS_MODULE,
|
|
|
};
|
|
|
|
|
|
static struct proc_dir_entry *proc_info_root = NULL;
|
|
@@ -475,12 +476,8 @@ static const char proc_info_root_name[] = "fs/reiserfs";
|
|
|
static void add_file(struct super_block *sb, char *name,
|
|
|
int (*func) (struct seq_file *, struct super_block *))
|
|
|
{
|
|
|
- struct proc_dir_entry *de;
|
|
|
- de = create_proc_entry(name, 0, REISERFS_SB(sb)->procdir);
|
|
|
- if (de) {
|
|
|
- de->data = func;
|
|
|
- de->proc_fops = &r_file_operations;
|
|
|
- }
|
|
|
+ proc_create_data(name, 0, REISERFS_SB(sb)->procdir,
|
|
|
+ &r_file_operations, func);
|
|
|
}
|
|
|
|
|
|
int reiserfs_proc_info_init(struct super_block *sb)
|