summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2006-12-20 12:48:23 +0100
committerJens Axboe <jens.axboe@oracle.com>2006-12-20 12:48:23 +0100
commit0268b8ba7b2c79c669323cb1fcc0b045b84313f1 (patch)
tree6bc829e1128bd636cb03d14ede4904366e4f4544 /memory.c
parentee88470c001012d08ae37bfc31741a935be2e7a1 (diff)
downloadfio-0268b8ba7b2c79c669323cb1fcc0b045b84313f1.tar.gz
fio-0268b8ba7b2c79c669323cb1fcc0b045b84313f1.tar.bz2
[PATCH] Fix hugetlb problems
Alignment was bad, and we need to check the shmhuge string before shm, otherwise it'll match the latter. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memory.c b/memory.c
index a7bf82a8..d336c2bc 100644
--- a/memory.c
+++ b/memory.c
@@ -98,7 +98,7 @@ void free_io_mem(struct thread_data *td)
{
if (td->mem_type == MEM_MALLOC)
free(td->orig_buffer);
- else if (td->mem_type == MEM_SHM) {
+ else if (td->mem_type == MEM_SHM || td->mem_type == MEM_SHMHUGE) {
struct shmid_ds sbuf;
shmdt(td->orig_buffer);