aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/file.c')
-rw-r--r--fs/ceph/file.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index a17ffe4ec3ca..bc0735498d29 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -861,16 +861,7 @@ static loff_t ceph_llseek(struct file *file, loff_t offset, int whence)
861 break; 861 break;
862 } 862 }
863 863
864 if (offset < 0 || offset > inode->i_sb->s_maxbytes) { 864 offset = vfs_setpos(file, offset, inode->i_sb->s_maxbytes);
865 offset = -EINVAL;
866 goto out;
867 }
868
869 /* Special lock needed here? */
870 if (offset != file->f_pos) {
871 file->f_pos = offset;
872 file->f_version = 0;
873 }
874 865
875out: 866out:
876 mutex_unlock(&inode->i_mutex); 867 mutex_unlock(&inode->i_mutex);