From 0c02fefaf7d6b54f4d9cae2b1ae1f2b657857625 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Mon, 28 Sep 2015 16:47:01 +0530 Subject: protocol/server: define the max number of inodes in lru list as a number * The max number of inodes in the lru list of the inode table was being defined in terms of memory units (GF_UNIT_MB) instead of number. And the description of the option was also referring to it in memory units instead of number. Change-Id: I48f07e7d2826406697eb2a13714ab22feae81d89 BUG: 1266883 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.org/12242 Tested-by: NetBSD Build System Reviewed-by: Niels de Vos Tested-by: Gluster Build System --- xlators/protocol/server/src/server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators/protocol') diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c index bcfa1f3fe0f..3a4a81d349c 100644 --- a/xlators/protocol/server/src/server.c +++ b/xlators/protocol/server/src/server.c @@ -1314,10 +1314,10 @@ struct volume_options options[] = { { .key = {"inode-lru-limit"}, .type = GF_OPTION_TYPE_INT, .min = 0, - .max = (1 * GF_UNIT_MB), + .max = 1048576, .default_value = "16384", - .description = "Specifies the maximum megabytes of memory to be " - "used in the inode cache." + .description = "Specifies the limit on the number of inodes " + "in the lru list of the inode cache." }, { .key = {"verify-volfile-checksum"}, .type = GF_OPTION_TYPE_BOOL -- cgit