Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/vfs_cache.c
Show First 20 Lines • Show All 5,430 Lines • ▼ Show 20 Lines | #endif | ||||
error = cache_fplookup_impl(dvp, &fpl); | error = cache_fplookup_impl(dvp, &fpl); | ||||
out: | out: | ||||
cache_fpl_smr_assert_not_entered(&fpl); | cache_fpl_smr_assert_not_entered(&fpl); | ||||
cache_fpl_assert_status(&fpl); | cache_fpl_assert_status(&fpl); | ||||
*status = fpl.status; | *status = fpl.status; | ||||
if (SDT_PROBES_ENABLED()) { | if (SDT_PROBES_ENABLED()) { | ||||
SDT_PROBE3(vfs, fplookup, lookup, done, ndp, fpl.line, fpl.status); | SDT_PROBE3(vfs, fplookup, lookup, done, ndp, fpl.line, fpl.status); | ||||
if (fpl.status == CACHE_FPL_STATUS_HANDLED) | if (fpl.status == CACHE_FPL_STATUS_HANDLED) | ||||
SDT_PROBE3(vfs, namei, lookup, return, error, ndp->ni_vp, true); | SDT_PROBE4(vfs, namei, lookup, return, error, ndp->ni_vp, true, | ||||
ndp); | |||||
} | } | ||||
if (__predict_true(fpl.status == CACHE_FPL_STATUS_HANDLED)) { | if (__predict_true(fpl.status == CACHE_FPL_STATUS_HANDLED)) { | ||||
MPASS(error != CACHE_FPL_FAILED); | MPASS(error != CACHE_FPL_FAILED); | ||||
if (error != 0) { | if (error != 0) { | ||||
MPASS(fpl.dvp == NULL); | MPASS(fpl.dvp == NULL); | ||||
MPASS(fpl.tvp == NULL); | MPASS(fpl.tvp == NULL); | ||||
MPASS(fpl.savename == false); | MPASS(fpl.savename == false); | ||||
Show All 11 Lines |