dlm: common max length definitions
authorDavid Teigland <teigland@redhat.com>
Mon, 14 Apr 2008 19:06:29 +0000 (14:06 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 21 Apr 2008 16:22:29 +0000 (11:22 -0500)
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>
fs/dlm/dlm_internal.h
include/linux/dlm.h
include/linux/dlm_device.h
include/linux/dlmconstants.h

index caa1581..73c36f5 100644 (file)
@@ -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? */
index c743fbc..188f6e6 100644 (file)
 /* Lock levels and flags are here */
 #include <linux/dlmconstants.h>
 
-
-#define DLM_RESNAME_MAXLEN     64
-
-
 typedef void dlm_lockspace_t;
 
 /*
index 9642277..dcfd249 100644 (file)
@@ -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
index fddb3d3..47bf08d 100644 (file)
  * Constants used by DLM interface.
  */
 
+#define DLM_LOCKSPACE_LEN       64
+#define DLM_RESNAME_MAXLEN      64
+
+
 /*
  * Lock Modes
  */