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

Function spa_l2cache_remove

freebsd/contrib/openzfs/module/zfs/spa_misc.c:1117–1125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1115}
1116
1117void
1118spa_l2cache_remove(vdev_t *vd)
1119{
1120 mutex_enter(&spa_l2cache_lock);
1121 ASSERT(vd->vdev_isl2cache);
1122 spa_aux_remove(vd, &spa_l2cache_avl);
1123 vd->vdev_isl2cache = B_FALSE;
1124 mutex_exit(&spa_l2cache_lock);
1125}
1126
1127boolean_t
1128spa_l2cache_exists(uint64_t guid, uint64_t *pool)

Callers 1

vdev_freeFunction · 0.85

Calls 3

mutex_enterFunction · 0.85
spa_aux_removeFunction · 0.85
mutex_exitFunction · 0.85

Tested by

no test coverage detected