OSDN Git Service

dlm: use rsbtbl as resource directory
authorDavid Teigland <teigland@redhat.com>
Thu, 10 May 2012 15:18:07 +0000 (10:18 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 16 Jul 2012 19:16:19 +0000 (14:16 -0500)
commitc04fecb4d9f7753e0cbff7edd03ec68f8721cdce
treeecd82017d49c7bb03b96a8ad1eb4e9a5bb84409a
parentecc728467fb0c3e350b57fc66ed7585c15be50f5
dlm: use rsbtbl as resource directory

Remove the dir hash table (dirtbl), and use
the rsb hash table (rsbtbl) as the resource
directory.  It has always been an unnecessary
duplication of information.

This improves efficiency by using a single rsbtbl
lookup in many cases where both rsbtbl and dirtbl
lookups were needed previously.

This eliminates the need to handle cases of rsbtbl
and dirtbl being out of sync.

In many cases there will be memory savings because
the dir hash table no longer exists.

Signed-off-by: David Teigland <teigland@redhat.com>
14 files changed:
fs/dlm/config.c
fs/dlm/config.h
fs/dlm/debug_fs.c
fs/dlm/dir.c
fs/dlm/dir.h
fs/dlm/dlm_internal.h
fs/dlm/lock.c
fs/dlm/lock.h
fs/dlm/lockspace.c
fs/dlm/rcom.c
fs/dlm/rcom.h
fs/dlm/recover.c
fs/dlm/recover.h
fs/dlm/recoverd.c