Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/sys/dmu.h
Show First 20 Lines • Show All 814 Lines • ▼ Show 20 Lines | |||||
void dmu_tx_do_callbacks(list_t *cb_list, int error); | void dmu_tx_do_callbacks(list_t *cb_list, int error); | ||||
/* | /* | ||||
* Free up the data blocks for a defined range of a file. If size is | * Free up the data blocks for a defined range of a file. If size is | ||||
* -1, the range from offset to end-of-file is freed. | * -1, the range from offset to end-of-file is freed. | ||||
*/ | */ | ||||
int dmu_free_range(objset_t *os, uint64_t object, uint64_t offset, | int dmu_free_range(objset_t *os, uint64_t object, uint64_t offset, | ||||
uint64_t size, dmu_tx_t *tx); | uint64_t size, dmu_tx_t *tx); | ||||
int dmu_free_long_range_ofs(objset_t *os, uint64_t object, uint64_t *offset, | |||||
uint64_t *length); | |||||
int dmu_free_long_range(objset_t *os, uint64_t object, uint64_t offset, | int dmu_free_long_range(objset_t *os, uint64_t object, uint64_t offset, | ||||
uint64_t size); | uint64_t size); | ||||
int dmu_free_long_object(objset_t *os, uint64_t object); | int dmu_free_long_object(objset_t *os, uint64_t object); | ||||
/* | /* | ||||
* Convenience functions. | * Convenience functions. | ||||
* | * | ||||
* Canfail routines will return 0 on success, or an errno if there is a | * Canfail routines will return 0 on success, or an errno if there is a | ||||
▲ Show 20 Lines • Show All 244 Lines • Show Last 20 Lines |