]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-linux-flush-compare-20080402
authorMarc Dionne <marc.dionne@technoconseil.com>
Wed, 2 Apr 2008 19:21:49 +0000 (19:21 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 2 Apr 2008 19:21:49 +0000 (19:21 +0000)
LICENSE IPL10

because i let this slip out like this. sigh.

(cherry picked from commit 93c326ef08cacc730470a7af75041d943825260b)

src/afs/LINUX/osi_vnodeops.c

index 6fea95259e206cdbca4f414a399d26508e387084..f6c3ca16c705d98d8c7af4d52453683c1f8f22b4 100644 (file)
@@ -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;
     }