projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rhashtable: add rhashtable_lookup_get_insert_key()
[cascardo/linux.git]
/
include
/
linux
/
slab_def.h
diff --git
a/include/linux/slab_def.h
b/include/linux/slab_def.h
index
339ba02
..
4ad2c5a
100644
(file)
--- a/
include/linux/slab_def.h
+++ b/
include/linux/slab_def.h
@@
-88,7
+88,8
@@
struct kmem_cache {
};
static inline void *nearest_obj(struct kmem_cache *cache, struct page *page,
- void *x) {
+ void *x)
+{
void *object = x - (x - page->s_mem) % cache->size;
void *last_object = page->s_mem + (cache->num - 1) * cache->size;