San: Create a function for committing and zeroing

Committing and zeroing an extent is usually done together, hence a new
function.
3 files changed