ocfs2/dlm: Create slabcaches for lock and lockres
authorSunil Mushran <sunil.mushran@oracle.com>
Mon, 10 Mar 2008 22:16:20 +0000 (15:16 -0700)
committerMark Fasheh <mfasheh@suse.com>
Fri, 18 Apr 2008 15:56:08 +0000 (08:56 -0700)
commit724bdca9b8449d9ee5f779dc27ee3d906a04508c
treec12d1028d862a58ce7a01024ba9b1f04ab157e3b
parent12eb0035d6f0466038ef2c6e5f6f9296b9b74d91
ocfs2/dlm: Create slabcaches for lock and lockres

This patch makes the o2dlm allocate memory for lockres, lockname and lock
structures from slabcaches rather than kmalloc. This allows us to not only
make these allocs more efficient but also allows us to track the memory being
consumed by these structures.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/dlm/dlmcommon.h
fs/ocfs2/dlm/dlmdomain.c
fs/ocfs2/dlm/dlmlock.c
fs/ocfs2/dlm/dlmmaster.c