Re: writing a plugin for reiserfs compression

Robert Varga (nite@hq.alert.sk)
Fri, 2 Nov 2001 10:24:21 +0100


--Nq2Wo0NMKNjxTN9z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Nov 01, 2001 at 10:43:37PM +0100, Roy Sigurd Karlsbakk wrote:
> > Note this transparent ext2 compression patch is only available for 2.2
>=20
> Would it be hard to port to 2.4?

AFAIK kinda yes. It relies on IO going through block buffer cache:
Buffer cache contains the compressed data, while the page cache has it all =
decompressed.
This avoids excessive (de)compression (you need to compress data only when =
commiting page
to disk).

With 2.4 Ext2 moved (almost?) entirely out of buffer cache, you'll need to
create your own IO buffers. This is the only solution I came up with. Is th=
ere some
other approach how to cope with this problem ?

--=20
Kind regards,
Robert Varga
---------------------------------------------------------------------------=

---
n@hq.sk                                          http://hq.sk/~nite/gpgkey.=
txt
=20

--Nq2Wo0NMKNjxTN9z Content-Type: application/pgp-signature Content-Disposition: inline

-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org

iD8DBQE74mZF9aKR2/T45h8RAtS2AKCTvTFTKpGHgcz8Jy/FYGUe8N5rAQCcDO9X cSvgFvl9msTtBT/5XfVHriM= =3AwM -----END PGP SIGNATURE-----

--Nq2Wo0NMKNjxTN9z-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/