mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
STABLE14-linux-flush-compare-20080402
LICENSE IPL10 because i let this slip out like this. sigh. (cherry picked from commit 93c326ef08cacc730470a7af75041d943825260b)
This commit is contained in:
parent
6ac65423b1
commit
8ff373a3d1
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user