X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=smalloc.c;h=fdf7d22ec4bf2b256f755842d97ec578baaa9fb9;hb=92bf48d530ab09bae4058df711c4723c73da51b9;hp=42008ebfdb6e44732c469b596b7be65786031231;hpb=c0e75abff75f2fd11107c9da7c34f9265b6303e1;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)