aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index c3ef1c0d0e68..f5ba41132488 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -508,7 +508,7 @@ static ssize_t cifs_file_aio_write(struct kiocb *iocb, const char __user *buf,
508static loff_t cifs_llseek(struct file *file, loff_t offset, int origin) 508static loff_t cifs_llseek(struct file *file, loff_t offset, int origin)
509{ 509{
510 /* origin == SEEK_END => we must revalidate the cached file length */ 510 /* origin == SEEK_END => we must revalidate the cached file length */
511 if (origin == 2) { 511 if (origin == SEEK_END) {
512 int retval = cifs_revalidate(file->f_dentry); 512 int retval = cifs_revalidate(file->f_dentry);
513 if (retval < 0) 513 if (retval < 0)
514 return (loff_t)retval; 514 return (loff_t)retval;