projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Streamline pattern/meta verifies instead of special casing them
[fio.git]
/
smalloc.c
diff --git
a/smalloc.c
b/smalloc.c
index 42008ebfdb6e44732c469b596b7be65786031231..fdf7d22ec4bf2b256f755842d97ec578baaa9fb9 100644
(file)
--- 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
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)
#endif
if (ftruncate(fd, alloc_size) < 0)