summaryrefslogtreecommitdiffstats
path: root/sys/fs/coda/coda_subr.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-02-13 19:50:17 +0000
committerrwatson <rwatson@FreeBSD.org>2008-02-13 19:50:17 +0000
commit5e4721882e3744ca4c876a9741dd05c74d2b1f28 (patch)
treea6d906676387f0441e285e1a70b8898504d8729b /sys/fs/coda/coda_subr.c
parent3184363ac3c40ef1418e2b84acdf6fe8caea9276 (diff)
downloadFreeBSD-src-5e4721882e3744ca4c876a9741dd05c74d2b1f28.zip
FreeBSD-src-5e4721882e3744ca4c876a9741dd05c74d2b1f28.tar.gz
Update cache flushing behavior in light of recent namecache and
access cache improvements: - Flush just access control state on CODA_PURGEUSER, not the full namecache for /coda. - When replacing a fid on a cnode as a result of, e.g., reintegration after offline operation, we no longer need to purge the namecache entries associated with its vnode. MFC after: 1 month
Diffstat (limited to 'sys/fs/coda/coda_subr.c')
-rw-r--r--sys/fs/coda/coda_subr.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/fs/coda/coda_subr.c b/sys/fs/coda/coda_subr.c
index 1586133..f28e052 100644
--- a/sys/fs/coda/coda_subr.c
+++ b/sys/fs/coda/coda_subr.c
@@ -478,12 +478,6 @@ handleDownCall(struct coda_mntinfo *mnt, int opcode, union outputArgs *out)
coda_acccache_purgeuser(mnt->mi_vfsp,
out->coda_purgeuser.uid);
#endif
- /*
- * For now, we flush the entire namecache, but this is
- * undesirable. Once we have an access control cache, we
- * should just flush that instead.
- */
- cache_purgevfs(mnt->mi_vfsp);
return (0);
}
@@ -570,7 +564,6 @@ handleDownCall(struct coda_mntinfo *mnt, int opcode, union outputArgs *out)
* fid, and reinsert.
*/
vref(CTOV(cp));
- cache_purge(CTOV(cp));
coda_unsave(cp);
cp->c_fid = out->coda_replace.NewFid;
coda_save(cp);
OpenPOWER on IntegriCloud