version 1.211, 2017/05/26 14:21:01 |
version 1.211.8.1, 2018/11/26 01:52:49 |
Line 913 puffs_vnop_open(void *v) |
|
Line 913 puffs_vnop_open(void *v) |
|
* - we do not want to discard cached write by direct write |
* - we do not want to discard cached write by direct write |
* - read cache is now useless and should be freed |
* - read cache is now useless and should be freed |
*/ |
*/ |
|
mutex_enter(&pn->pn_sizemtx); |
flushvncache(vp, 0, 0, true); |
flushvncache(vp, 0, 0, true); |
|
mutex_exit(&pn->pn_sizemtx); |
|
|
if (mode & FREAD) |
if (mode & FREAD) |
pn->pn_stat |= PNODE_RDIRECT; |
pn->pn_stat |= PNODE_RDIRECT; |
if (mode & FWRITE) |
if (mode & FWRITE) |
Line 1467 puffs_vnop_reclaim(void *v) |
|
Line 1470 puffs_vnop_reclaim(void *v) |
|
notifyserver = false; |
notifyserver = false; |
} |
} |
|
|
|
/* See the comment on top of puffs_vnop_inactive(). */ |
|
if (vp->v_type == VNON) |
|
notifyserver = false; |
|
|
/* |
/* |
* purge info from kernel before issueing FAF, since we |
* purge info from kernel before issueing FAF, since we |
* don't really know when we'll get around to it after |
* don't really know when we'll get around to it after |
Line 1720 puffs_vnop_fsync(void *v) |
|
Line 1727 puffs_vnop_fsync(void *v) |
|
pn = VPTOPP(vp); |
pn = VPTOPP(vp); |
KASSERT(pn != NULL); |
KASSERT(pn != NULL); |
pmp = MPTOPUFFSMP(vp->v_mount); |
pmp = MPTOPUFFSMP(vp->v_mount); |
|
|
|
/* See the comment on top of puffs_vnop_inactive(). */ |
|
if (vp->v_type == VNON) |
|
return 0; |
|
|
if (ap->a_flags & FSYNC_WAIT) { |
if (ap->a_flags & FSYNC_WAIT) { |
mutex_enter(&pn->pn_sizemtx); |
mutex_enter(&pn->pn_sizemtx); |
} else { |
} else { |