/* On success, We end up with an outstanding reference count against iloc->bh. This  */
int ext3_reserve_inode_write(handle_t *handle, struct inode *inode, struct ext3_iloc *iloc)
/* On success, We end up with an outstanding reference count against iloc->bh. This  */
int ext3_reserve_inode_write(handle_t *handle, struct inode *inode, struct ext3_iloc *iloc)
{
	int err = 0;
	if (handle) {
		err = ext3_get_inode_loc(inode, iloc);
		if (!err) {
			BUFFER_TRACE(iloc->bh, "get_write_access");
			err = ext3_journal_get_write_access(handle, iloc->bh);
			if (err) {
				brelse(iloc->bh);
				iloc->bh = NULL;
			}
		}
	}
	ext3_std_error(inode->i_sb, err);
	return err;
}