Re: [PATCH] fix hugepage-size type mismatch

From: Jens Axboe <jens.axboe_at_oracle.com>
Date: Wed, 20 Feb 2008 09:14:33 +0100

On Wed, Feb 20 2008, Aaron Carroll wrote:
> hugepage_size in thread_options is of type int, but listed in
> options.c as type long. This patch reconciles the two.
>
> Signed-off-by: Aaron Carroll <aaronc_at_gelato.unsw.edu.au>
> ---
> options.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/options.c b/options.c
> index b59dd22..1119a98 100644
> --- a/options.c
> +++ b/options.c
> @@ -1118,7 +1118,7 @@ static struct fio_option options[] = {
> },
> {
> .name = "hugepage-size",
> - .type = FIO_OPT_STR_VAL,
> + .type = FIO_OPT_STR_VAL_INT,
> .off1 = td_var_offset(hugepage_size),
> .help = "When using hugepages, specify size of each page",
> .def = __stringify(FIO_HUGE_PAGE),

Thanks Aaron, applied.

-- 
Jens Axboe
Received on Wed Feb 20 2008 - 09:14:33 CET

This archive was generated by hypermail 2.2.0 : Wed Feb 20 2008 - 09:30:01 CET