git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
3ddb9dd
)
linux-lock64-fix-20030116
author
Pavel Semerad
<semerad@ss1000.ms.mff.cuni.cz>
Fri, 17 Jan 2003 01:30:05 +0000 (
01:30
+0000)
committer
Derrick Brashear
<shadow@dementia.org>
Fri, 17 Jan 2003 01:30:05 +0000 (
01:30
+0000)
fix 64bit lock functions
src/afs/LINUX/osi_vnodeops.c
patch
|
blob
|
history
diff --git
a/src/afs/LINUX/osi_vnodeops.c
b/src/afs/LINUX/osi_vnodeops.c
index
67538b5
..
1045df7
100644
(file)
--- a/
src/afs/LINUX/osi_vnodeops.c
+++ b/
src/afs/LINUX/osi_vnodeops.c
@@
-649,11
+649,11
@@
static int afs_linux_lock(struct file *fp, int cmd, struct file_lock *flp)
/* Safe because there are no large files, yet */
#if defined(F_GETLK64) && (F_GETLK != F_GETLK64)
- if (cmd = F_GETLK64)
+ if (cmd == F_GETLK64)
cmd = F_GETLK;
- else if (cmd = F_SETLK64)
+ else if (cmd == F_SETLK64)
cmd = F_SETLK;
- else if (cmd = F_SETLKW64)
+ else if (cmd == F_SETLKW64)
cmd = F_SETLKW;
#endif /* F_GETLK64 && F_GETLK != F_GETLK64 */