aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/stackglue.h
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2008-02-01 15:14:57 -0500
committerMark Fasheh <mfasheh@suse.com>2008-04-18 11:56:03 -0400
commitbd3e76105d4478ab89951a52d1a35250d24a9f16 (patch)
tree3a024471d62491f0160031663e0db23f42be37b8 /fs/ocfs2/stackglue.h
parent24ef1815e5e13e50196eb1ab8ddc0d783443bdf8 (diff)
ocfs2: Use global DLM_ constants in generic code.
The ocfs2 generic code should use the values in <linux/dlmconstants.h>. stackglue.c will convert them to o2dlm values. Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/stackglue.h')
-rw-r--r--fs/ocfs2/stackglue.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/ocfs2/stackglue.h b/fs/ocfs2/stackglue.h
index 40a002413404..986d059ed1e0 100644
--- a/fs/ocfs2/stackglue.h
+++ b/fs/ocfs2/stackglue.h
@@ -21,6 +21,19 @@
21#ifndef STACKGLUE_H 21#ifndef STACKGLUE_H
22#define STACKGLUE_H 22#define STACKGLUE_H
23 23
24#include <linux/types.h>
25#include <linux/list.h>
26#include <linux/dlmconstants.h>
27
28/*
29 * dlmconstants.h does not have a LOCAL flag. We hope to remove it
30 * some day, but right now we need it. Let's fake it. This value is larger
31 * than any flag in dlmconstants.h.
32 */
33#define DLM_LKF_LOCAL 0x00100000
34
35#include "dlm/dlmapi.h"
36
24struct ocfs2_locking_protocol { 37struct ocfs2_locking_protocol {
25 void (*lp_lock_ast)(void *astarg); 38 void (*lp_lock_ast)(void *astarg);
26 void (*lp_blocking_ast)(void *astarg, int level); 39 void (*lp_blocking_ast)(void *astarg, int level);