From: Matthew Wilcox Date: Fri, 30 Jun 2006 09:31:24 +0000 (-0700) Subject: Resources: insert identical resources above existing resources X-Git-Tag: v2.6.19-rc1~1004^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d33b6fba2c4350651f3f61ff2ab858a2f116e9a4;p=pandora-kernel.git Resources: insert identical resources above existing resources If you have two resources which aree exactly the same size, insert_resource() currently inserts the new one below the existing one. This is wrong because there's no way to insert a resource of the same size above an existing one. I took this opportunity to rewrite the initial loop to be a for-loop instead of a goto-loop and fix the documentation. Signed-off-by: Matthew Wilcox Cc: Ivan Kokshaysky Cc: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed