readahead: remove one unnecessary radix tree lookup
authorWu Fengguang <fengguang.wu@intel.com>
Tue, 16 Jun 2009 22:31:21 +0000 (15:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jun 2009 02:47:28 +0000 (19:47 -0700)
commitcaca7cb748571a5b39943a9b3e7081feef055e5e
tree8f115031584d8ebc14280079fed8183ef1f032ac
parentfc31d16add13773265cc53d59f2e7594cb3c0a14
readahead: remove one unnecessary radix tree lookup

(hit_readahead_marker != 0) means the page at @offset is present, so we
can search for non-present page starting from @offset+1.

Reported-by: Xu Chenfeng <xcf@ustc.edu.cn>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: Ying Han <yinghan@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/readahead.c