From 4acf4624d20ea77daaf25145c2969762d23c01d5 Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Wed, 2 Apr 2008 19:21:49 +0000 Subject: [PATCH] DEVEL15-linux-flush-compare-20080402 LICENSE IPL10 because i let this slip out like this. sigh. (cherry picked from commit 93c326ef08cacc730470a7af75041d943825260b) --- src/afs/LINUX/osi_vnodeops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 6fea95259e..f6c3ca16c7 100644 --- 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; }