git://git.onelab.eu
/
linux-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eae01a2
)
I'll never use i and j as counter variables again.
author
Sapan Bhatia
<sapanb@cs.princeton.edu>
Thu, 11 Feb 2010 21:40:27 +0000
(21:40 +0000)
committer
Sapan Bhatia
<sapanb@cs.princeton.edu>
Thu, 11 Feb 2010 21:40:27 +0000
(21:40 +0000)
linux-2.6-590-dcookies-mm.patch
patch
|
blob
|
history
diff --git
a/linux-2.6-590-dcookies-mm.patch
b/linux-2.6-590-dcookies-mm.patch
index
67a0d39
..
67310c1
100644
(file)
--- a/
linux-2.6-590-dcookies-mm.patch
+++ b/
linux-2.6-590-dcookies-mm.patch
@@
-128,7
+128,7
@@
diff -Nurb linux-2.6.27-580/fs/dcookies.c linux-2.6.27-590/fs/dcookies.c
- i = hash_size;
+
+ for (i=0; i<3; i++) {
-+ d = dcookie_hashtable[
0
];
++ d = dcookie_hashtable[
i
];
+ j = hash_size;
do {
INIT_LIST_HEAD(d);
@@
-191,7
+191,7
@@
diff -Nurb linux-2.6.27-580/fs/dcookies.c linux-2.6.27-590/fs/dcookies.c
+ size_t j;
+ unsigned int i;
+
-+ for (i = 0; i < 3; ++
j
) {
++ for (i = 0; i < 3; ++
i
) {
+ for (j = 0; j < hash_size; ++j) {
+ list = dcookie_hashtable[i] + j;
list_for_each_safe(pos, pos2, list) {