diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2015-09-28 16:47:01 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2015-10-15 09:35:24 -0700 |
commit | 0c02fefaf7d6b54f4d9cae2b1ae1f2b657857625 (patch) | |
tree | f157ac2167b0e8c2988f5ab4557f84a39a9c3a0b /xlators/protocol/server | |
parent | bd71446b25aefe066ca18a28d73d777774ab7f87 (diff) |
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 <raghavendra@redhat.com>
Reviewed-on: http://review.gluster.org/12242
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/protocol/server')
-rw-r--r-- | xlators/protocol/server/src/server.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |