projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30c29be
)
slab: fix starting index for finding another object
author
Joonsoo Kim
<
[email protected]
>
Mon, 17 Sep 2012 21:09:06 +0000
(14:09 -0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 17 Sep 2012 22:00:38 +0000
(15:00 -0700)
In array cache, there is a object at index 0, check it.
Signed-off-by: Joonsoo Kim <
[email protected]
>
Signed-off-by: Mel Gorman <
[email protected]
>
Cc: David Miller <
[email protected]
>
Cc: Chuck Lever <
[email protected]
>
Cc: David Rientjes <
[email protected]
>
Cc: Pekka Enberg <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/slab.c
patch
|
blob
|
history
diff --git
a/mm/slab.c
b/mm/slab.c
index d34a9034f92968459b056d252484f33563275f51..c6854759bcf1e041d7a21781921ac45cfd2f5484 100644
(file)
--- a/
mm/slab.c
+++ b/
mm/slab.c
@@
-983,7
+983,7
@@
static void *__ac_get_obj(struct kmem_cache *cachep, struct array_cache *ac,
}
/* The caller cannot use PFMEMALLOC objects, find another one */
- for (i =
1
; i < ac->avail; i++) {
+ for (i =
0
; i < ac->avail; i++) {
/* If a !PFMEMALLOC object is found, swap them */
if (!is_obj_pfmemalloc(ac->entry[i])) {
objp = ac->entry[i];