diff options
Diffstat (limited to 'fs/ceph/dir.c')
-rw-r--r-- | fs/ceph/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index e5b77319c97b..8c1aabe93b67 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c | |||
@@ -454,7 +454,7 @@ static void reset_readdir(struct ceph_file_info *fi) | |||
454 | fi->flags &= ~CEPH_F_ATEND; | 454 | fi->flags &= ~CEPH_F_ATEND; |
455 | } | 455 | } |
456 | 456 | ||
457 | static loff_t ceph_dir_llseek(struct file *file, loff_t offset, int origin) | 457 | static loff_t ceph_dir_llseek(struct file *file, loff_t offset, int whence) |
458 | { | 458 | { |
459 | struct ceph_file_info *fi = file->private_data; | 459 | struct ceph_file_info *fi = file->private_data; |
460 | struct inode *inode = file->f_mapping->host; | 460 | struct inode *inode = file->f_mapping->host; |
@@ -463,7 +463,7 @@ static loff_t ceph_dir_llseek(struct file *file, loff_t offset, int origin) | |||
463 | 463 | ||
464 | mutex_lock(&inode->i_mutex); | 464 | mutex_lock(&inode->i_mutex); |
465 | retval = -EINVAL; | 465 | retval = -EINVAL; |
466 | switch (origin) { | 466 | switch (whence) { |
467 | case SEEK_END: | 467 | case SEEK_END: |
468 | offset += inode->i_size + 2; /* FIXME */ | 468 | offset += inode->i_size + 2; /* FIXME */ |
469 | break; | 469 | break; |