summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2008-04-14 14:06:29 -0500
committerDavid Teigland <teigland@redhat.com>2008-04-21 11:22:29 -0500
commit3d564fa3472d36cd6aa70514c37b8bbbec5b17ab (patch)
tree1033829746e0440e3b603381b9ed640a0af1ec2a
parent2402211a8389282fd2942fad4511f02c0eeeffc5 (diff)
downloadlinux-3.10-3d564fa3472d36cd6aa70514c37b8bbbec5b17ab.tar.gz
linux-3.10-3d564fa3472d36cd6aa70514c37b8bbbec5b17ab.tar.bz2
linux-3.10-3d564fa3472d36cd6aa70514c37b8bbbec5b17ab.zip
dlm: common max length definitions
Add central definitions for max lockspace name length and max resource name length. The lack of central definitions has resulted in scattered private definitions which we can now clean up, including an unused one in dlm_device.h. Signed-off-by: David Teigland <teigland@redhat.com>
-rw-r--r--fs/dlm/dlm_internal.h2
-rw-r--r--include/linux/dlm.h4
-rw-r--r--include/linux/dlm_device.h3
-rw-r--r--include/linux/dlmconstants.h4
4 files changed, 4 insertions, 9 deletions
diff --git a/fs/dlm/dlm_internal.h b/fs/dlm/dlm_internal.h
index caa1581e158..73c36f50170 100644
--- a/fs/dlm/dlm_internal.h
+++ b/fs/dlm/dlm_internal.h
@@ -43,8 +43,6 @@
#include <linux/dlm.h>
#include "config.h"
-#define DLM_LOCKSPACE_LEN 64
-
/* Size of the temp buffer midcomms allocates on the stack.
We try to make this large enough so most messages fit.
FIXME: should sctp make this unnecessary? */
diff --git a/include/linux/dlm.h b/include/linux/dlm.h
index c743fbc769d..188f6e6925a 100644
--- a/include/linux/dlm.h
+++ b/include/linux/dlm.h
@@ -22,10 +22,6 @@
/* Lock levels and flags are here */
#include <linux/dlmconstants.h>
-
-#define DLM_RESNAME_MAXLEN 64
-
-
typedef void dlm_lockspace_t;
/*
diff --git a/include/linux/dlm_device.h b/include/linux/dlm_device.h
index 9642277a152..dcfd2499902 100644
--- a/include/linux/dlm_device.h
+++ b/include/linux/dlm_device.h
@@ -94,9 +94,6 @@ struct dlm_lock_result {
#define DLM_USER_PURGE 6
#define DLM_USER_DEADLOCK 7
-/* Arbitrary length restriction */
-#define MAX_LS_NAME_LEN 64
-
/* Lockspace flags */
#define DLM_USER_LSFLG_AUTOFREE 1
#define DLM_USER_LSFLG_FORCEFREE 2
diff --git a/include/linux/dlmconstants.h b/include/linux/dlmconstants.h
index fddb3d3ff32..47bf08dc756 100644
--- a/include/linux/dlmconstants.h
+++ b/include/linux/dlmconstants.h
@@ -18,6 +18,10 @@
* Constants used by DLM interface.
*/
+#define DLM_LOCKSPACE_LEN 64
+#define DLM_RESNAME_MAXLEN 64
+
+
/*
* Lock Modes
*/