]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
dlm: allow multiple lockspace creates
authorDavid Teigland <teigland@redhat.com>
Wed, 6 Aug 2008 18:30:24 +0000 (13:30 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 28 Aug 2008 16:49:15 +0000 (11:49 -0500)
commit0f8e0d9a317406612700426fad3efab0b7bbc467
treeb4ed35afeab36615e50d5c7928a6199780fd2fca
parent4c246edd2550304df5b766cc841584b2bb058843
dlm: allow multiple lockspace creates

Add a count for lockspace create and release so that create can
be called multiple times to use the lockspace from different places.
Also add the new flag DLM_LSFL_NEWEXCL to create a lockspace with
the previous behavior of returning -EEXIST if the lockspace already
exists.

Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/dlm_internal.h
fs/dlm/lockspace.c
fs/dlm/user.c
fs/dlm/user.h
fs/gfs2/locking/dlm/mount.c
include/linux/dlm.h
include/linux/dlm_device.h