]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite814d3a875f1173c738487914e30c89ad614b8fa
treec12d1028d862a58ce7a01024ba9b1f04ab157e3b
parente9968d1f6a67ddd9e6ea629c24a71074f7a1d5f3
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