MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vfs_cache_root_clear

Function vfs_cache_root_clear

freebsd/kern/vfs_subr.c:6523–6537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6521}
6522
6523struct vnode *
6524vfs_cache_root_clear(struct mount *mp)
6525{
6526 struct vnode *vp;
6527
6528 /*
6529 * ops > 0 guarantees there is nobody who can see this vnode
6530 */
6531 MPASS(mp->mnt_vfs_ops > 0);
6532 vp = mp->mnt_rootvnode;
6533 if (vp != NULL)
6534 vn_seqc_write_begin(vp);
6535 mp->mnt_rootvnode = NULL;
6536 return (vp);
6537}
6538
6539void
6540vfs_cache_root_set(struct mount *mp, struct vnode *vp)

Callers 3

vfs_domount_firstFunction · 0.85
vfs_domount_updateFunction · 0.85
dounmountFunction · 0.85

Calls 1

vn_seqc_write_beginFunction · 0.85

Tested by

no test coverage detected