summaryrefslogtreecommitdiffstats
path: root/glusterfsd/src/glusterfsd.c
diff options
context:
space:
mode:
authorAnand V. Avati <avati@amp.gluster.com>2009-04-13 17:50:21 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-04-13 20:10:49 +0530
commit451620e0ec88f717e7046ebb27fe1f29d73796d9 (patch)
tree8cc07c426a9b76cca1022220919dde0c53b28ecb /glusterfsd/src/glusterfsd.c
parent3093ff0b125c520fdac3db627af708f495c9a47e (diff)
introduce page_size in glusterfs_ctx_t to be used by all translators set it to 128KB in main()
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'glusterfsd/src/glusterfsd.c')
-rw-r--r--glusterfsd/src/glusterfsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 1b5a26c4f1f..e0f2e15fd2c 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -967,7 +967,8 @@ main (int argc, char *argv[])
free (base_exec_name);
- ctx->iobuf_pool = iobuf_pool_new (8 * 1048576, 128 * 1024);
+ ctx->page_size = 128 * 1024;
+ ctx->iobuf_pool = iobuf_pool_new (8 * 1048576, ctx->page_size);
ctx->event_pool = event_pool_new (DEFAULT_EVENT_POOL_SIZE);
pthread_mutex_init (&(ctx->lock), NULL);
pool = ctx->pool = CALLOC (1, sizeof (call_pool_t));