projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a comment after f227e2b6
[fio.git]
/
smalloc.c
diff --git
a/smalloc.c
b/smalloc.c
index d038ac64ccfb8dedbe2801ed3630dafbb121b97c..e48cfe8b1c11339d8e566743472795606668d588 100644
(file)
--- a/
smalloc.c
+++ b/
smalloc.c
@@
-13,6
+13,7
@@
#include <limits.h>
#include <fcntl.h>
#include <limits.h>
#include <fcntl.h>
+#include "fio.h"
#include "mutex.h"
#include "arch/arch.h"
#include "os/os.h"
#include "mutex.h"
#include "arch/arch.h"
#include "os/os.h"
@@
-248,7
+249,7
@@
static void *postred_ptr(struct block_hdr *hdr)
uintptr_t ptr;
ptr = (uintptr_t) hdr + hdr->size - sizeof(unsigned int);
uintptr_t ptr;
ptr = (uintptr_t) hdr + hdr->size - sizeof(unsigned int);
- ptr = (
ptr + int_mask) & ~int_mask
;
+ ptr = (
uintptr_t) PTR_ALIGN(ptr, int_mask)
;
return (void *) ptr;
}
return (void *) ptr;
}