* \param type The supposed type of \a btrn.
*
* Most users of the buffer tree subsystem call this function from both
* \param type The supposed type of \a btrn.
*
* Most users of the buffer tree subsystem call this function from both
*
* \return Negative if an error condition was detected, zero if there
* is nothing to do and positive otherwise.
*
* \return Negative if an error condition was detected, zero if there
* is nothing to do and positive otherwise.