From: Andre Noll Date: Thu, 14 Jan 2010 22:58:00 +0000 (+0100) Subject: [btr] Add a comment to btr_pool_available(). X-Git-Tag: v0.4.2~95 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=b21e8ef1df178fed144619bd3fba8cb67148454f;p=paraslash.git [btr] Add a comment to btr_pool_available(). --- diff --git a/buffer_tree.c b/buffer_tree.c index 5571b433..4160646d 100644 --- a/buffer_tree.c +++ b/buffer_tree.c @@ -100,6 +100,10 @@ size_t btr_pool_unused(struct btr_pool *btrp) return btr_pool_size(btrp) - btr_pool_filled(btrp); } +/* + * Return maximal size available for one read. This is + * smaller than the value returned by btr_pool_unused(). + */ size_t btr_pool_available(struct btr_pool *btrp) { if (!btrp->whead)