aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlmglue.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/dlmglue.h')
-rw-r--r--fs/ocfs2/dlmglue.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/ocfs2/dlmglue.h b/fs/ocfs2/dlmglue.h
index 243ae862ece5..340251567e99 100644
--- a/fs/ocfs2/dlmglue.h
+++ b/fs/ocfs2/dlmglue.h
@@ -27,6 +27,8 @@
27#ifndef DLMGLUE_H 27#ifndef DLMGLUE_H
28#define DLMGLUE_H 28#define DLMGLUE_H
29 29
30#include "dcache.h"
31
30#define OCFS2_LVB_VERSION 3 32#define OCFS2_LVB_VERSION 3
31 33
32struct ocfs2_meta_lvb { 34struct ocfs2_meta_lvb {
@@ -58,8 +60,12 @@ void ocfs2_lock_res_init_once(struct ocfs2_lock_res *res);
58void ocfs2_inode_lock_res_init(struct ocfs2_lock_res *res, 60void ocfs2_inode_lock_res_init(struct ocfs2_lock_res *res,
59 enum ocfs2_lock_type type, 61 enum ocfs2_lock_type type,
60 struct inode *inode); 62 struct inode *inode);
63void ocfs2_dentry_lock_res_init(struct ocfs2_dentry_lock *dl,
64 u64 parent, struct inode *inode);
61void ocfs2_lock_res_free(struct ocfs2_lock_res *res); 65void ocfs2_lock_res_free(struct ocfs2_lock_res *res);
62int ocfs2_create_new_inode_locks(struct inode *inode); 66int ocfs2_create_new_inode_locks(struct inode *inode);
67int ocfs2_create_new_lock(struct ocfs2_super *osb,
68 struct ocfs2_lock_res *lockres, int ex);
63int ocfs2_drop_inode_locks(struct inode *inode); 69int ocfs2_drop_inode_locks(struct inode *inode);
64int ocfs2_data_lock_full(struct inode *inode, 70int ocfs2_data_lock_full(struct inode *inode,
65 int write, 71 int write,
@@ -93,7 +99,12 @@ void ocfs2_super_unlock(struct ocfs2_super *osb,
93 int ex); 99 int ex);
94int ocfs2_rename_lock(struct ocfs2_super *osb); 100int ocfs2_rename_lock(struct ocfs2_super *osb);
95void ocfs2_rename_unlock(struct ocfs2_super *osb); 101void ocfs2_rename_unlock(struct ocfs2_super *osb);
102int ocfs2_dentry_lock(struct dentry *dentry, int ex);
103void ocfs2_dentry_unlock(struct dentry *dentry, int ex);
104
96void ocfs2_mark_lockres_freeing(struct ocfs2_lock_res *lockres); 105void ocfs2_mark_lockres_freeing(struct ocfs2_lock_res *lockres);
106void ocfs2_simple_drop_lockres(struct ocfs2_super *osb,
107 struct ocfs2_lock_res *lockres);
97 108
98/* for the vote thread */ 109/* for the vote thread */
99void ocfs2_process_blocked_lock(struct ocfs2_super *osb, 110void ocfs2_process_blocked_lock(struct ocfs2_super *osb,