]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/block_dev.c
Btrfs: return EIO if we have extent tree corruption
[karo-tx-linux.git] / fs / block_dev.c
index ab3a456f66506a5a134f5280739e82c572b15f55..172f8491a2bd6905fda9d21afb8957c16a97c5f6 100644 (file)
@@ -321,7 +321,7 @@ static int blkdev_write_end(struct file *file, struct address_space *mapping,
  * for a block special file file->f_path.dentry->d_inode->i_size is zero
  * so we compute the size by hand (just as in block_read/write above)
  */
-static loff_t block_llseek(struct file *file, loff_t offset, int origin)
+static loff_t block_llseek(struct file *file, loff_t offset, int whence)
 {
        struct inode *bd_inode = file->f_mapping->host;
        loff_t size;
@@ -331,7 +331,7 @@ static loff_t block_llseek(struct file *file, loff_t offset, int origin)
        size = i_size_read(bd_inode);
 
        retval = -EINVAL;
-       switch (origin) {
+       switch (whence) {
                case SEEK_END:
                        offset += size;
                        break;