X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=smalloc.c;h=fdf7d22ec4bf2b256f755842d97ec578baaa9fb9;hb=deaa1af25d75d6989d15966b4579bc158df856f0;hp=42008ebfdb6e44732c469b596b7be65786031231;hpb=b67a1114b5cea9ef12d14f8821a0d8142998395f;p=fio.git diff --git a/smalloc.c b/smalloc.c index 42008ebf..fdf7d22e 100644 --- a/smalloc.c +++ b/smalloc.c @@ -203,15 +203,7 @@ static int add_pool(struct pool *pool, unsigned int alloc_size) pool->free_blocks = bitmap_blocks * SMALLOC_BPB; #ifdef FIO_HAVE_FALLOCATE - { - int ret; - - ret = posix_fallocate(fd, 0, alloc_size); - if (ret > 0) { - fprintf(stderr, "posix_fallocate pool file failed: %s\n", strerror(ret)); - goto out_unlink; - } - } + posix_fallocate(fd, 0, alloc_size); #endif if (ftruncate(fd, alloc_size) < 0)