projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eeab61
)
CIFS: Use SEEK_END instead of hardcoded value
author
Steve French
<sfrench@us.ibm.com>
Sat, 23 Sep 2006 22:11:07 +0000
(22:11 +0000)
committer
Steve French
<sfrench@us.ibm.com>
Sat, 23 Sep 2006 22:11:07 +0000
(22:11 +0000)
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsfs.c
patch
|
blob
|
history
diff --git
a/fs/cifs/cifsfs.c
b/fs/cifs/cifsfs.c
index c3ef1c0d0e684786969bdb1c1caf7e860e2afd9e..f5ba411324883ac5f0670a43678399d9421b7da5 100644
(file)
--- 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;