projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
205927a
)
blockdev_invalidate_cache(): return -1 for error
author
Jens Axboe
<jens.axboe@oracle.com>
Thu, 15 Mar 2007 10:35:33 +0000
(11:35 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Thu, 15 Mar 2007 10:35:33 +0000
(11:35 +0100)
This follows the normal system calls, and makes fio pickup errno
appropriately.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
os-linux.h
patch
|
blob
|
blame
|
history
diff --git
a/os-linux.h
b/os-linux.h
index 84919539e7a711e6c7d724705314a2c6e03d707b..d3b2e931e8b754eaecfd06af87748225d5e168b9 100644
(file)
--- a/
os-linux.h
+++ b/
os-linux.h
@@
-124,10
+124,7
@@
enum {
static inline int blockdev_invalidate_cache(int fd)
{
- if (!ioctl(fd, BLKFLSBUF))
- return 0;
-
- return errno;
+ return ioctl(fd, BLKFLSBUF);
}
static inline int blockdev_size(int fd, unsigned long long *bytes)