| 867 | } |
| 868 | |
| 869 | int |
| 870 | zap_destroy(objset_t *os, uint64_t zapobj, dmu_tx_t *tx) |
| 871 | { |
| 872 | /* |
| 873 | * dmu_object_free will free the object number and free the |
| 874 | * data. Freeing the data will cause our pageout function to be |
| 875 | * called, which will destroy our data (zap_leaf_t's and zap_t). |
| 876 | */ |
| 877 | |
| 878 | return (dmu_object_free(os, zapobj, tx)); |
| 879 | } |
| 880 | |
| 881 | void |
| 882 | zap_evict_sync(void *dbu) |