From: Jan Kara Date: Sun, 6 May 2007 21:49:25 +0000 (-0700) Subject: readahead: improve heuristic detecting sequential reads X-Git-Tag: v2.6.22-rc1~978 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec0f16372277052a29a6c17527c6cae5e898b3fd;p=pandora-kernel.git readahead: improve heuristic detecting sequential reads Introduce ra.offset and store in it an offset where the previous read ended. This way we can detect whether reads are really sequential (and thus we should not mark the page as accessed repeatedly) or whether they are random and just happen to be in the same page (and the page should really be marked accessed again). Signed-off-by: Jan Kara Acked-by: Nick Piggin Cc: WU Fengguang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed