projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gfio: improve option edit
[fio.git]
/
os
/
os-solaris.h
diff --git
a/os/os-solaris.h
b/os/os-solaris.h
index 5bf868ac8f527c3ed56c130ee633d12b5ab3b693..d97643d02c71394211e915e429ee91b1d6addf1f 100644
(file)
--- a/
os/os-solaris.h
+++ b/
os/os-solaris.h
@@
-22,6
+22,7
@@
#define FIO_HAVE_FDATASYNC
#define FIO_HAVE_CHARDEV_SIZE
#define FIO_USE_GENERIC_BDEV_SIZE
#define FIO_HAVE_FDATASYNC
#define FIO_HAVE_CHARDEV_SIZE
#define FIO_USE_GENERIC_BDEV_SIZE
+#define FIO_USE_GENERIC_INIT_RANDOM_STATE
#define FIO_HAVE_GETTID
#define OS_MAP_ANON MAP_ANON
#define FIO_HAVE_GETTID
#define OS_MAP_ANON MAP_ANON
@@
-111,24
+112,16
@@
static inline int fio_set_odirect(int fd)
static inline int fio_cpuset_init(os_cpu_mask_t *mask)
{
static inline int fio_cpuset_init(os_cpu_mask_t *mask)
{
- int ret;
-
- if (pset_create(mask) < 0) {
- ret = errno;
+ if (pset_create(mask) < 0)
return -1;
return -1;
- }
return 0;
}
static inline int fio_cpuset_exit(os_cpu_mask_t *mask)
{
return 0;
}
static inline int fio_cpuset_exit(os_cpu_mask_t *mask)
{
- int ret;
-
- if (pset_destroy(*mask) < 0) {
- ret = errno;
+ if (pset_destroy(*mask) < 0)
return -1;
return -1;
- }
return 0;
}
return 0;
}