From: David Howells Date: Wed, 9 May 2007 12:42:20 +0000 (+0100) Subject: Fix a bad error case handling in read_cache_page_async() X-Git-Tag: v2.6.22-rc1~145 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c855ff3718e5f667b463b20b9de516b4cd7625ad;p=pandora-kernel.git Fix a bad error case handling in read_cache_page_async() Commit 6fe6900e1e5b6fa9e5c59aa5061f244fe3f467e2 introduced a nasty bug in read_cache_page_async(). It added a "mark_page_accessed(page)" at the final return path in read_cache_page_async(). But in error cases, 'page' holds the error code, and you can't mark it accessed. [ and Glauber de Oliveira Costa points out that we can use a return instead of adding more goto's ] Signed-off-by: David Howells Acked-by: Nick Piggin Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed