diff options
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index ab3a456f6650..172f8491a2bd 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -321,7 +321,7 @@ static int blkdev_write_end(struct file *file, struct address_space *mapping, | |||
321 | * for a block special file file->f_path.dentry->d_inode->i_size is zero | 321 | * for a block special file file->f_path.dentry->d_inode->i_size is zero |
322 | * so we compute the size by hand (just as in block_read/write above) | 322 | * so we compute the size by hand (just as in block_read/write above) |
323 | */ | 323 | */ |
324 | static loff_t block_llseek(struct file *file, loff_t offset, int origin) | 324 | static loff_t block_llseek(struct file *file, loff_t offset, int whence) |
325 | { | 325 | { |
326 | struct inode *bd_inode = file->f_mapping->host; | 326 | struct inode *bd_inode = file->f_mapping->host; |
327 | loff_t size; | 327 | loff_t size; |
@@ -331,7 +331,7 @@ static loff_t block_llseek(struct file *file, loff_t offset, int origin) | |||
331 | size = i_size_read(bd_inode); | 331 | size = i_size_read(bd_inode); |
332 | 332 | ||
333 | retval = -EINVAL; | 333 | retval = -EINVAL; |
334 | switch (origin) { | 334 | switch (whence) { |
335 | case SEEK_END: | 335 | case SEEK_END: |
336 | offset += size; | 336 | offset += size; |
337 | break; | 337 | break; |