diff options
author | Steve French <sfrench@us.ibm.com> | 2006-09-23 22:11:07 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-09-23 22:11:07 +0000 |
commit | 0889a9441d98af7951c5377647413d79c84c9efa (patch) | |
tree | 7ded3cbb833750a3a34bd29846cebf0a6e5a070f /fs | |
parent | 3eeab61aa3ddd3c0bedb7449ada1599de22fdb5a (diff) | |
download | kernel_samsung_espresso10-0889a9441d98af7951c5377647413d79c84c9efa.zip kernel_samsung_espresso10-0889a9441d98af7951c5377647413d79c84c9efa.tar.gz kernel_samsung_espresso10-0889a9441d98af7951c5377647413d79c84c9efa.tar.bz2 |
CIFS: Use SEEK_END instead of hardcoded value
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/cifsfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index c3ef1c0..f5ba411 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, static loff_t cifs_llseek(struct file *file, loff_t offset, int origin) { /* origin == SEEK_END => we must revalidate the cached file length */ - if (origin == 2) { + if (origin == SEEK_END) { int retval = cifs_revalidate(file->f_dentry); if (retval < 0) return (loff_t)retval; |