[Ocfs2-devel] [PATCH] ocfs2: Wrap inode block reads in a dedicated function.

Mark Fasheh mfasheh at suse.com
Tue Oct 14 17:49:24 PDT 2008


On Tue, Oct 14, 2008 at 05:36:27PM -0700, Joel Becker wrote:
> > API-wise, this is a very nice change. It makes the checks we have more
> > consistent. I think it'd be worth the time though to figure out how to
> > execute the validation code only when we've actually read the disk.
> 
> 	I'm glad you like the API (I'm almost done with group
> descriptors now too).  Regarding 'only on read', when I have the
> callback in ocfs2_read_blocks() to handle that, I can easily lift all of
> the validation there (instead of just the checksum).  Basically, I'm
> refactoring all the metadata reads before I do the read_blocks() hook.

Ahhh, ok great. So the end result is that we'll get the consistent checks
*and* we'll only be doing them when it matters. Great!


> It seems a much easier to follow series.

Yeah definitely, I see that now.
	--Mark

--
Mark Fasheh



More information about the Ocfs2-devel mailing list