diff options
Diffstat (limited to 'drivers/misc/ibmasm/ibmasmfs.c')
-rw-r--r-- | drivers/misc/ibmasm/ibmasmfs.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/misc/ibmasm/ibmasmfs.c b/drivers/misc/ibmasm/ibmasmfs.c index aecf40ecb3a4..d2d5d23416dd 100644 --- a/drivers/misc/ibmasm/ibmasmfs.c +++ b/drivers/misc/ibmasm/ibmasmfs.c | |||
@@ -75,6 +75,7 @@ | |||
75 | 75 | ||
76 | #include <linux/fs.h> | 76 | #include <linux/fs.h> |
77 | #include <linux/pagemap.h> | 77 | #include <linux/pagemap.h> |
78 | #include <linux/slab.h> | ||
78 | #include <asm/uaccess.h> | 79 | #include <asm/uaccess.h> |
79 | #include <asm/io.h> | 80 | #include <asm/io.h> |
80 | #include "ibmasm.h" | 81 | #include "ibmasm.h" |
@@ -90,11 +91,10 @@ static void ibmasmfs_create_files (struct super_block *sb, struct dentry *root); | |||
90 | static int ibmasmfs_fill_super (struct super_block *sb, void *data, int silent); | 91 | static int ibmasmfs_fill_super (struct super_block *sb, void *data, int silent); |
91 | 92 | ||
92 | 93 | ||
93 | static int ibmasmfs_get_super(struct file_system_type *fst, | 94 | static struct dentry *ibmasmfs_mount(struct file_system_type *fst, |
94 | int flags, const char *name, void *data, | 95 | int flags, const char *name, void *data) |
95 | struct vfsmount *mnt) | ||
96 | { | 96 | { |
97 | return get_sb_single(fst, flags, data, ibmasmfs_fill_super, mnt); | 97 | return mount_single(fst, flags, data, ibmasmfs_fill_super); |
98 | } | 98 | } |
99 | 99 | ||
100 | static const struct super_operations ibmasmfs_s_ops = { | 100 | static const struct super_operations ibmasmfs_s_ops = { |
@@ -107,7 +107,7 @@ static const struct file_operations *ibmasmfs_dir_ops = &simple_dir_operations; | |||
107 | static struct file_system_type ibmasmfs_type = { | 107 | static struct file_system_type ibmasmfs_type = { |
108 | .owner = THIS_MODULE, | 108 | .owner = THIS_MODULE, |
109 | .name = "ibmasmfs", | 109 | .name = "ibmasmfs", |
110 | .get_sb = ibmasmfs_get_super, | 110 | .mount = ibmasmfs_mount, |
111 | .kill_sb = kill_litter_super, | 111 | .kill_sb = kill_litter_super, |
112 | }; | 112 | }; |
113 | 113 | ||
@@ -145,6 +145,7 @@ static struct inode *ibmasmfs_make_inode(struct super_block *sb, int mode) | |||
145 | struct inode *ret = new_inode(sb); | 145 | struct inode *ret = new_inode(sb); |
146 | 146 | ||
147 | if (ret) { | 147 | if (ret) { |
148 | ret->i_ino = get_next_ino(); | ||
148 | ret->i_mode = mode; | 149 | ret->i_mode = mode; |
149 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; | 150 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; |
150 | } | 151 | } |
@@ -583,6 +584,7 @@ static const struct file_operations command_fops = { | |||
583 | .release = command_file_close, | 584 | .release = command_file_close, |
584 | .read = command_file_read, | 585 | .read = command_file_read, |
585 | .write = command_file_write, | 586 | .write = command_file_write, |
587 | .llseek = generic_file_llseek, | ||
586 | }; | 588 | }; |
587 | 589 | ||
588 | static const struct file_operations event_fops = { | 590 | static const struct file_operations event_fops = { |
@@ -590,6 +592,7 @@ static const struct file_operations event_fops = { | |||
590 | .release = event_file_close, | 592 | .release = event_file_close, |
591 | .read = event_file_read, | 593 | .read = event_file_read, |
592 | .write = event_file_write, | 594 | .write = event_file_write, |
595 | .llseek = generic_file_llseek, | ||
593 | }; | 596 | }; |
594 | 597 | ||
595 | static const struct file_operations r_heartbeat_fops = { | 598 | static const struct file_operations r_heartbeat_fops = { |
@@ -597,6 +600,7 @@ static const struct file_operations r_heartbeat_fops = { | |||
597 | .release = r_heartbeat_file_close, | 600 | .release = r_heartbeat_file_close, |
598 | .read = r_heartbeat_file_read, | 601 | .read = r_heartbeat_file_read, |
599 | .write = r_heartbeat_file_write, | 602 | .write = r_heartbeat_file_write, |
603 | .llseek = generic_file_llseek, | ||
600 | }; | 604 | }; |
601 | 605 | ||
602 | static const struct file_operations remote_settings_fops = { | 606 | static const struct file_operations remote_settings_fops = { |
@@ -604,6 +608,7 @@ static const struct file_operations remote_settings_fops = { | |||
604 | .release = remote_settings_file_close, | 608 | .release = remote_settings_file_close, |
605 | .read = remote_settings_file_read, | 609 | .read = remote_settings_file_read, |
606 | .write = remote_settings_file_write, | 610 | .write = remote_settings_file_write, |
611 | .llseek = generic_file_llseek, | ||
607 | }; | 612 | }; |
608 | 613 | ||
609 | 614 | ||