From: Sapan Bhatia Date: Thu, 11 Feb 2010 21:40:27 +0000 (+0000) Subject: I'll never use i and j as counter variables again. X-Git-Tag: linux-2.6-27-4~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4c03048da02f897dec14eeafb85fa447798ab128;hp=eae01a254d659e02b25533ef99c601eee0a56fe3;p=linux-2.6.git I'll never use i and j as counter variables again. --- diff --git a/linux-2.6-590-dcookies-mm.patch b/linux-2.6-590-dcookies-mm.patch index 67a0d398f..67310c1e3 100644 --- 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) {