]> Git Repo - linux.git/commit
[PATCH] readahead: ->prev_page can overrun the ahead window
authorOleg Nesterov <[email protected]>
Wed, 22 Mar 2006 08:08:47 +0000 (00:08 -0800)
committerLinus Torvalds <[email protected]>
Wed, 22 Mar 2006 15:54:03 +0000 (07:54 -0800)
commita564da3964db3256069190c2ae95069143ac37fb
treeb7b9d66c1d6dde82db23222b16b0296013b1c3db
parentd15c023b44e5d323f1f4130b85d29f08e43433b1
[PATCH] readahead: ->prev_page can overrun the ahead window

If get_next_ra_size() does not grow fast enough, ->prev_page can overrun
the ahead window.  This means the caller will read the pages from
->ahead_start + ->ahead_size to ->prev_page synchronously.

Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Steven Pratt <[email protected]>
Cc: Ram Pai <[email protected]>
Cc: Trond Myklebust <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/readahead.c
This page took 0.05078 seconds and 4 git commands to generate.