[Ocfs2-devel] [PATCH 12/14] ocfs2: Let ocfs2_xa_prepare_entry() do space checks.

Joel Becker Joel.Becker at oracle.com
Tue Sep 1 19:11:21 PDT 2009


On Wed, Sep 02, 2009 at 09:54:31AM +0800, Tao Ma wrote:
> I just have one concern. Here we used to check whether count ==
> ocfs2_xattr_max_xe_in_bucket(inode->i_sb) which make sure
> ocfs2_xattr_entry to be stored only in the first block of a
> bucket(this is a legacy issue before you added ocfs2_xattr_bucket
> abstraction), so now you remove this restriction. Maybe it is ok
> since now we already read the whole bucket and it looks that your
> current xa_* abstraction can handle it. Just want to remind you of
> it.

	Oh, right.  I knew about that, but clearly forgot while I was
doing this particular patch.  Intellectually I'd like to remove the
restriction, as that makes our code more general and flexible.  But all
code prior to this, even if it read the whole bucket, assumed that the
entries were in a linear buffer.  Before this xa_loc abstraction, that's
false.  We'd have older kernels (2.6.30, 2.6.31) crashing on anything
with this problem.  Of course, how many people have that many xattrs?
Maybe we can just figure that by they time they have that many, they
have 2.6.32? :-)

Joel


-- 

"If you took all of the grains of sand in the world, and lined
 them up end to end in a row, you'd be working for the government!"
	- Mr. Interesting

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-devel mailing list