From: Marc Dionne Date: Wed, 2 Apr 2008 19:27:13 +0000 (+0000) Subject: STABLE14-linux-flush-compare-20080402 X-Git-Tag: openafs-stable-1_4_7pre3~2 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8ff373a3d1edf5d5a5ab60cff9c5f0dd46ca2186;p=packages%2Fo%2Fopenafs.git STABLE14-linux-flush-compare-20080402 LICENSE IPL10 because i let this slip out like this. sigh. (cherry picked from commit 93c326ef08cacc730470a7af75041d943825260b) --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index b9d002a44..ea0b13124 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -570,7 +570,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; }