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

Function cache_fpl_handle_root

freebsd/kern/vfs_cache.c:3756–3777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3754}
3755
3756static struct vnode *
3757cache_fpl_handle_root(struct cache_fpl *fpl)
3758{
3759 struct nameidata *ndp;
3760 struct componentname *cnp;
3761
3762 ndp = fpl->ndp;
3763 cnp = fpl->cnp;
3764
3765 MPASS(*(cnp->cn_nameptr) == '/');
3766 cnp->cn_nameptr++;
3767 cache_fpl_pathlen_dec(fpl);
3768
3769 if (__predict_false(*(cnp->cn_nameptr) == '/')) {
3770 do {
3771 cnp->cn_nameptr++;
3772 cache_fpl_pathlen_dec(fpl);
3773 } while (*(cnp->cn_nameptr) == '/');
3774 }
3775
3776 return (ndp->ni_rootdir);
3777}
3778
3779static void
3780cache_fpl_checkpoint_outer(struct cache_fpl *fpl)

Callers 2

cache_fplookup_symlinkFunction · 0.85
cache_fplookupFunction · 0.85

Calls 1

cache_fpl_pathlen_decFunction · 0.85

Tested by

no test coverage detected