git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
31d06c7
)
linux-flush-compare-20080402
author
Marc Dionne
<marc.dionne@technoconseil.com>
Wed, 2 Apr 2008 19:19:57 +0000 (19:19 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Wed, 2 Apr 2008 19:19:57 +0000 (19:19 +0000)
LICENSE IPL10
because i let this slip out like this. sigh.
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
4a50475
..
3c7a818
100644
(file)
--- a/
src/afs/LINUX/osi_vnodeops.c
+++ b/
src/afs/LINUX/osi_vnodeops.c
@@
-588,7
+588,7
@@
afs_linux_flush(struct file *fp)
AFS_GLOCK();
- if (fp->f_flags | O_RDONLY) { /* readers dont flush */
+ if ((fp->f_flags & O_ACCMODE) == O_RDONLY) { /* readers dont flush */
AFS_GUNLOCK();
return 0;
}