]> git.hungrycats.org Git - linux/commit
[PATCH] Fix mpage_readpage() for big requests
authorBadari Pulavarty <pbadari@us.ibm.com>
Tue, 24 Aug 2004 04:26:42 +0000 (21:26 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 04:26:42 +0000 (21:26 -0700)
commit13c6195264e3f64a1bfbdad3dce78ef5fb431808
tree069c3a05afb7505cfdae0bbe2d89625aa4bbc2c3
parent7b4731ff24098e9c96853aa9aeaaddf0f4f0dbbb
[PATCH] Fix mpage_readpage() for big requests

The problem is, if we increase our readhead size arbitrarily (say 2M), we
call mpage_readpages() with 2M and when it tries to allocated a bio enough to
fit 2M it fails, then we kick it back to "confused" code - which does 4K at
a time.

The fix is to ask for the maxium the driver can handle.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/mpage.c