aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index f887358dabc5..118dfa4952f4 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -1798,10 +1798,7 @@ static loff_t shmem_file_llseek(struct file *file, loff_t offset, int whence)
1798 } 1798 }
1799 } 1799 }
1800 1800
1801 if (offset >= 0 && offset != file->f_pos) { 1801 offset = vfs_setpos(file, offset, MAX_LFS_FILESIZE);
1802 file->f_pos = offset;
1803 file->f_version = 0;
1804 }
1805 mutex_unlock(&inode->i_mutex); 1802 mutex_unlock(&inode->i_mutex);
1806 return offset; 1803 return offset;
1807} 1804}