STABLE14-linux-flush-unlock-20080402

LICENSE IPL10

because i let this slip out like this. sigh.


(cherry picked from commit 31d06c78b2f8ea14877bebf05097b33cc7e233f2)
This commit is contained in:
Harald Barth 2008-04-02 14:11:42 +00:00 committed by Derrick Brashear
parent dc2dc75358
commit 6ac65423b1

View File

@ -570,8 +570,10 @@ afs_linux_flush(struct file *fp)
AFS_GLOCK();
if (fp->f_flags | O_RDONLY) /* readers dont flush */
if (fp->f_flags | O_RDONLY) { /* readers dont flush */
AFS_GUNLOCK();
return 0;
}
credp = crref();
vcp = VTOAFS(FILE_INODE(fp));