mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
linux-flush-compare-20080402
LICENSE IPL10 because i let this slip out like this. sigh.
This commit is contained in:
parent
31d06c78b2
commit
93c326ef08
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user