Skip to content

Commit

Permalink
dlm: common max length definitions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Teigland committed Apr 21, 2008
1 parent 2402211 commit 3d564fa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 0 additions & 2 deletions fs/dlm/dlm_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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? */
Expand Down
4 changes: 0 additions & 4 deletions include/linux/dlm.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
/* Lock levels and flags are here */
#include <linux/dlmconstants.h>


#define DLM_RESNAME_MAXLEN 64


typedef void dlm_lockspace_t;

/*
Expand Down
3 changes: 0 additions & 3 deletions include/linux/dlm_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions include/linux/dlmconstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
* Constants used by DLM interface.
*/

#define DLM_LOCKSPACE_LEN 64
#define DLM_RESNAME_MAXLEN 64


/*
* Lock Modes
*/
Expand Down

0 comments on commit 3d564fa

Please sign in to comment.