X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=fs%2Fceph%2Ffile.c;h=e51558fca3a346a93797561e26e148de037d971a;hb=40889e8d9fc6355980cf2bc94ef4356c10dec4ec;hp=d415096800a61753e0bac382dff8988176e88a09;hpb=c3e946ce7276faf0b302acd25c7b874edbeba661;p=platform%2Fupstream%2Fkernel-adaptation-pc.git diff --git a/fs/ceph/file.c b/fs/ceph/file.c index d415096..e51558f 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c @@ -784,7 +784,7 @@ out: /* * llseek. be sure to verify file size on SEEK_END. */ -static loff_t ceph_llseek(struct file *file, loff_t offset, int origin) +static loff_t ceph_llseek(struct file *file, loff_t offset, int whence) { struct inode *inode = file->f_mapping->host; int ret; @@ -792,7 +792,7 @@ static loff_t ceph_llseek(struct file *file, loff_t offset, int origin) mutex_lock(&inode->i_mutex); __ceph_do_pending_vmtruncate(inode); - if (origin == SEEK_END || origin == SEEK_DATA || origin == SEEK_HOLE) { + if (whence == SEEK_END || whence == SEEK_DATA || whence == SEEK_HOLE) { ret = ceph_do_getattr(inode, CEPH_STAT_CAP_SIZE); if (ret < 0) { offset = ret; @@ -800,7 +800,7 @@ static loff_t ceph_llseek(struct file *file, loff_t offset, int origin) } } - switch (origin) { + switch (whence) { case SEEK_END: offset += inode->i_size; break;