X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fmmap.c;h=bc038f4febac88d68167f30e09d212942bbce582;hb=710bf9c592b849935e1bcc56ffc805fa1d5f9365;hp=c479ed39497ef8c3bd8c70e380cdd6e3f18c8be1;hpb=487197d9e8f3aa0f135a6d88e5f222a1a930723a;p=fio.git diff --git a/engines/mmap.c b/engines/mmap.c index c479ed39..bc038f4f 100644 --- a/engines/mmap.c +++ b/engines/mmap.c @@ -15,7 +15,7 @@ #include "../verify.h" /* - * Limits us to 1GB of mapped files in total + * Limits us to 1GiB of mapped files in total */ #define MMAP_TOTAL_SZ (1 * 1024 * 1024 * 1024UL) @@ -67,7 +67,7 @@ static int fio_mmap_file(struct thread_data *td, struct fio_file *f, } #ifdef FIO_MADV_FREE - if (f->filetype == FIO_TYPE_BD) + if (f->filetype == FIO_TYPE_BLOCK) (void) posix_madvise(fmd->mmap_ptr, fmd->mmap_sz, FIO_MADV_FREE); #endif