mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-10 12:40:09 +00:00
scoutfs: pull in some fields from ocfs2_super for dlmglue
This is all the dlmglue global context needed. Signed-off-by: Mark Fasheh <mfasheh@versity.com>
This commit is contained in:
@@ -137,6 +137,33 @@ struct ocfs2_lock_res {
|
||||
#endif
|
||||
};
|
||||
|
||||
struct ocfs2_super
|
||||
{
|
||||
struct ocfs2_cluster_connection *cconn;
|
||||
struct ocfs2_dlm_debug *osb_dlm_debug;
|
||||
struct dentry *osb_debug_root;
|
||||
|
||||
/* Downconvert thread */
|
||||
spinlock_t dc_task_lock;
|
||||
struct task_struct *dc_task;
|
||||
wait_queue_head_t dc_event;
|
||||
unsigned long dc_wake_sequence;
|
||||
unsigned long dc_work_sequence;
|
||||
|
||||
/*
|
||||
* Any thread can add locks to the list, but the downconvert
|
||||
* thread is the only one allowed to remove locks. Any change
|
||||
* to this rule requires updating
|
||||
* ocfs2_downconvert_thread_do_work().
|
||||
*/
|
||||
struct list_head blocked_lock_list;
|
||||
unsigned long blocked_lock_count;
|
||||
|
||||
unsigned long s_mount_opt;
|
||||
};
|
||||
/* For s_mount_opt */
|
||||
#define OCFS2_MOUNT_NOINTR (1 << 2)
|
||||
|
||||
#if 0
|
||||
#include "dcache.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user