diff options
Diffstat (limited to 'drivers/oprofile/oprofilefs.c')
-rw-r--r-- | drivers/oprofile/oprofilefs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/oprofile/oprofilefs.c b/drivers/oprofile/oprofilefs.c index 1944621930d9..449de59bf35b 100644 --- a/drivers/oprofile/oprofilefs.c +++ b/drivers/oprofile/oprofilefs.c | |||
@@ -28,6 +28,7 @@ static struct inode *oprofilefs_get_inode(struct super_block *sb, int mode) | |||
28 | struct inode *inode = new_inode(sb); | 28 | struct inode *inode = new_inode(sb); |
29 | 29 | ||
30 | if (inode) { | 30 | if (inode) { |
31 | inode->i_ino = get_next_ino(); | ||
31 | inode->i_mode = mode; | 32 | inode->i_mode = mode; |
32 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 33 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
33 | } | 34 | } |
@@ -121,12 +122,14 @@ static const struct file_operations ulong_fops = { | |||
121 | .read = ulong_read_file, | 122 | .read = ulong_read_file, |
122 | .write = ulong_write_file, | 123 | .write = ulong_write_file, |
123 | .open = default_open, | 124 | .open = default_open, |
125 | .llseek = default_llseek, | ||
124 | }; | 126 | }; |
125 | 127 | ||
126 | 128 | ||
127 | static const struct file_operations ulong_ro_fops = { | 129 | static const struct file_operations ulong_ro_fops = { |
128 | .read = ulong_read_file, | 130 | .read = ulong_read_file, |
129 | .open = default_open, | 131 | .open = default_open, |
132 | .llseek = default_llseek, | ||
130 | }; | 133 | }; |
131 | 134 | ||
132 | 135 | ||
@@ -178,6 +181,7 @@ static ssize_t atomic_read_file(struct file *file, char __user *buf, size_t coun | |||
178 | static const struct file_operations atomic_ro_fops = { | 181 | static const struct file_operations atomic_ro_fops = { |
179 | .read = atomic_read_file, | 182 | .read = atomic_read_file, |
180 | .open = default_open, | 183 | .open = default_open, |
184 | .llseek = default_llseek, | ||
181 | }; | 185 | }; |
182 | 186 | ||
183 | 187 | ||