[linux-mm-cc] [RFC] LZO de/compression support - take 3
nitingupta910 at gmail.com
Thu May 24 00:04:12 EDT 2007
On 5/23/07, Richard Purdie <richard at openedhand.com> wrote:
> On Wed, 2007-05-23 at 09:16 -0700, Andrew Morton wrote:
> > On Wed, 23 May 2007 19:51:44 +0530 "Nitin Gupta" <nitingupta910 at gmail.com> wrote:
> > > On 5/23/07, Michael-Luke Jones <mlj28 at cam.ac.uk> wrote:
> > If so, it was quite inappropriate that a filesystem be using the unsafe
> > version.
> Yes, I'll give you a patch to change the resier4 code in -mm then (if
> its not already been changed).
Richard, are you planning to use this patch for LZO or your own port?
Can we decide on a Final Unified(tm) version of LZO port and then
patch up reiser4 or whatever to use that Ultimate LZO instead?
Can you please look into this (take 3) version on LZO patch posted and
we can edit/add/remove things from this to unify our effort - there is
no point in this duplication.
Perhaps you have opinion of maintaining diffability with original LZO
code which differs from mine. Since the code is now just ~500 lines it
should be fair enough to have major overhauls for sake of clean
KernelStyle(tm) code. It shouldn't be that hard to verify this small
code for bugs that might have crept in during porting work. As regard
to keeping up with future LZO versions, hm.... that will be hard - but
I don't think algorithm itself will change and optimizations can
always be done separately in this fork.
> > I'd agree with the proposed renaming. In fact I'd suggest that the unsafe
> > APIs just be removed - it's hard to imagine a situation in which they're OK
> > to be used in the kernel.
> The compressed cache code might be one exception since it does the
> compression itself and shouldn't get corrupted. If it does get
> corrupted, you have bigger problems.
Yes. Compressed Caching is one of cases where compressed data cannot
get magically corrupted. Hence, there is no need to go for the 'safe'
version. There might be other such cases too, so removing 'unsafe'
version is not good.
Ok, I will rename 'unsafe' version as such (as suggested by Michael).
More information about the linux-mm-cc