diff options
Diffstat (limited to 'fs/seq_file.c')
-rw-r--r-- | fs/seq_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/seq_file.c b/fs/seq_file.c index 99dffab4c4e4..9d863fb501f9 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c | |||
@@ -300,14 +300,14 @@ EXPORT_SYMBOL(seq_read); | |||
300 | * | 300 | * |
301 | * Ready-made ->f_op->llseek() | 301 | * Ready-made ->f_op->llseek() |
302 | */ | 302 | */ |
303 | loff_t seq_lseek(struct file *file, loff_t offset, int origin) | 303 | loff_t seq_lseek(struct file *file, loff_t offset, int whence) |
304 | { | 304 | { |
305 | struct seq_file *m = file->private_data; | 305 | struct seq_file *m = file->private_data; |
306 | loff_t retval = -EINVAL; | 306 | loff_t retval = -EINVAL; |
307 | 307 | ||
308 | mutex_lock(&m->lock); | 308 | mutex_lock(&m->lock); |
309 | m->version = file->f_version; | 309 | m->version = file->f_version; |
310 | switch (origin) { | 310 | switch (whence) { |
311 | case 1: | 311 | case 1: |
312 | offset += file->f_pos; | 312 | offset += file->f_pos; |
313 | case 0: | 313 | case 0: |