ocfs2/dlm: Clean up struct dlm_lock_name
authorSunil Mushran <sunil.mushran@oracle.com>
Thu, 26 Feb 2009 23:00:38 +0000 (15:00 -0800)
committerMark Fasheh <mfasheh@suse.com>
Fri, 3 Apr 2009 18:39:18 +0000 (11:39 -0700)
commitf77a9a78c3a1d995b3bf948dbcad5c4a1b2302d5
treec12f1fa1da0a64693d39a2f98c5a1981bf58a83a
parent1c0845773ad9f4875603b752235aea8aa04565f3
ocfs2/dlm: Clean up struct dlm_lock_name

For master mle, the name it stored in the attached lockres in struct qstr.
For block and migration mle, the name is stored inline in struct dlm_lock_name.
This patch attempts to make struct dlm_lock_name look like a struct qstr. While
we could use struct qstr, we don't because we want to avoid having to malloc
and free the lockname string as the mle's lifetime is fairly short.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/dlm/dlmcommon.h
fs/ocfs2/dlm/dlmdebug.c
fs/ocfs2/dlm/dlmmaster.c