You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
@@ -21,6 +21,19 @@
|
||||
#ifndef STACKGLUE_H
|
||||
#define STACKGLUE_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/dlmconstants.h>
|
||||
|
||||
/*
|
||||
* dlmconstants.h does not have a LOCAL flag. We hope to remove it
|
||||
* some day, but right now we need it. Let's fake it. This value is larger
|
||||
* than any flag in dlmconstants.h.
|
||||
*/
|
||||
#define DLM_LKF_LOCAL 0x00100000
|
||||
|
||||
#include "dlm/dlmapi.h"
|
||||
|
||||
struct ocfs2_locking_protocol {
|
||||
void (*lp_lock_ast)(void *astarg);
|
||||
void (*lp_blocking_ast)(void *astarg, int level);
|
||||
|
||||
Reference in New Issue
Block a user