[Ocfs2-devel] [PATCH 03/18] ocfs2: Handle missing dtor in kmem_cache_create()

Joel Becker Joel.Becker at oracle.com
Thu Nov 12 18:17:53 PST 2009


On Thu, Nov 12, 2009 at 05:47:24PM -0800, Sunil Mushran wrote:
> Mainline commit 20c2df83d25c6a95affe6157a4c9cac4cf5ffaac removed the
> dtor arg from kmem_cache_create(). Patch adds a kapi macro that adds
> a dtor arg when building against EL5 kernels.

	Question: Do you want to support an assortment of mainline
kernels, or only "2.6.32" and "2.6.18-el"?  Because there are a number
of slab things that happened.  I'm not sure which all apply to el5
anymore.  Not only did the destructor go away, so did the flag
SLAB_CTOR_VERIFY, and the init_once constructors changed prototype.
	Here was my solution:

http://oss.oracle.com/git/oracleasm.git/?p=oracleasm.git;a=commit;h=0888fd1be3d15ab3c7f504c8969c101f7d5d39fd

(Note that there are a couple of later commits to fix typos)

Joel

-- 

Life's Little Instruction Book #182

	"Be romantic."

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