linux-flush-compare-20080402

LICENSE IPL10

because i let this slip out like this. sigh.
This commit is contained in:
Marc Dionne 2008-04-02 19:19:57 +00:00 committed by Derrick Brashear
parent 31d06c78b2
commit 93c326ef08

View 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;
}