MINOR: buffer: use b_room() to determine available space in a buffer

We used to have variations around buffer_total_space() and
size-buffer_len() or size-b_data(). Let's simplify all this. buffer_len()
was also removed as not used anymore.
diff --git a/src/compression.c b/src/compression.c
index 567827d..397fd94 100644
--- a/src/compression.c
+++ b/src/compression.c
@@ -222,7 +222,7 @@
 static int identity_add_data(struct comp_ctx *comp_ctx, const char *in_data, int in_len, struct buffer *out)
 {
 	char *out_data = b_tail(out);
-	int out_len = out->size - buffer_len(out);
+	int out_len = b_room(out);
 
 	if (out_len < in_len)
 		return -1;
@@ -570,7 +570,7 @@
 	int ret;
 	z_stream *strm = &comp_ctx->strm;
 	char *out_data = b_tail(out);
-	int out_len = out->size - buffer_len(out);
+	int out_len = b_room(out);
 
 	if (in_len <= 0)
 		return 0;
@@ -603,13 +603,13 @@
 	strm->next_in = NULL;
 	strm->avail_in = 0;
 	strm->next_out = (unsigned char *)b_tail(out);
-	strm->avail_out = out->size - buffer_len(out);
+	strm->avail_out = b_room(out);
 
 	ret = deflate(strm, flag);
 	if (ret != Z_OK && ret != Z_STREAM_END)
 		return -1;
 
-	out_len = (out->size - buffer_len(out)) - strm->avail_out;
+	out_len = b_room(out) - strm->avail_out;
 	out->i += out_len;
 
 	/* compression limit */