[PATCH] 2.4.20 fix file_readahead for ide-cd and ide-floppy

Andrey Borzenkov (arvidjaar@mail.ru)
Sun, 12 Jan 2003 13:14:13 +0300


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-25963-1042366712-0001-2
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit
X-Mime-Autoconverted: from 8bit to 7bit by courier 0.39

The file_readahead setting in ide-cd and ide-floppy obviously
assumed read-ahead values are kept as bytes. This made them
totally useless. This patch unifies file_readahead with ide-disk
making values be stored correctly as pages and displayed as KB.

This also changes breada setting to match ide-disk as well (is it
really used at all? It appears the only place where it is referenced
is reiserfs).

The patch is agains Mandrake sources but as I assume it should apply to vanilla kernel as well.

cheers

-andrey

--=_courier-25963-1042366712-0001-2
Content-Type: application/octet-stream; name="2.4.20-2mdk.file_readahead-ide-cd-ide-floppy.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="2.4.20-2mdk.file_readahead-ide-cd-ide-floppy.patch"

LS0tIC91c3Ivc3JjL2xpbnV4LTIuNC4yMC0ybWRrL2RyaXZlcnMvaWRlL2lkZS1jZC5jCTIwMDIt
MTItMDkgMTQ6Mzg6MTcuMDAwMDAwMDAwICswMzAwCisrKyBkcml2ZXJzL2lkZS9pZGUtY2QuYwky
MDAzLTAxLTExIDIyOjI1OjA2LjAwMDAwMDAwMCArMDMwMApAQCAtMjcxNyw4ICsyNzE3LDggQEAK
IAlpbnQgbWFqb3IgPSBIV0lGKGRyaXZlKS0+bWFqb3I7CiAJaW50IG1pbm9yID0gZHJpdmUtPnNl
bGVjdC5iLnVuaXQgPDwgUEFSVE5fQklUUzsKIAotCWlkZV9hZGRfc2V0dGluZyhkcml2ZSwJImJy
ZWFkYV9yZWFkYWhlYWQiLAlTRVRUSU5HX1JXLCBCTEtSQUdFVCwgQkxLUkFTRVQsIFRZUEVfSU5U
LCAwLCAyNTUsIDEsIDIsICZyZWFkX2FoZWFkW21ham9yXSwgTlVM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