From 6544347166054f9b2ed10cdc8fe9025852ea3257 Mon Sep 17 00:00:00 2001 From: Ji-Hyeon Gim Date: Fri, 5 May 2017 18:06:25 +0900 Subject: libglusterfs: updates old comment for 'arena_size' the comment (libglusterfs/src/iobuf.h:88-90) for 'arena_size' field in 'struct iobuf_arena' is not valid anymore. According to line 190 in __iobuf_arena_alloc() no longer follows that equation. Change-Id: I68558164b309123cf19093e2da89bc156df294fd BUG: 1455831 Signed-off-by: Ji-Hyeon Gim Reviewed-on: https://review.gluster.org/17393 Smoke: Gluster Build System Reviewed-by: Amar Tumballi Tested-by: Shyamsundar Ranganathan NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System --- libglusterfs/src/iobuf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libglusterfs/src/iobuf.h b/libglusterfs/src/iobuf.h index 9a256257ff5..03aa954bbdd 100644 --- a/libglusterfs/src/iobuf.h +++ b/libglusterfs/src/iobuf.h @@ -85,9 +85,9 @@ struct iobuf_arena { struct list_head all_list; size_t page_size; /* size of all iobufs in this arena */ - size_t arena_size; /* this is equal to - (iobuf_pool->arena_size / page_size) - * page_size */ + size_t arena_size; + /* this is equal to rounded_size * num_iobufs. + (rounded_size comes with gf_iobuf_get_pagesize().) */ size_t page_count; struct iobuf_pool *iobuf_pool; -- cgit