diff options
Diffstat (limited to 'fs/ocfs2/dlmglue.h')
-rw-r--r-- | fs/ocfs2/dlmglue.h | 11 |
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 | ||
32 | struct ocfs2_meta_lvb { | 34 | struct ocfs2_meta_lvb { |
@@ -58,8 +60,12 @@ void ocfs2_lock_res_init_once(struct ocfs2_lock_res *res); | |||
58 | void ocfs2_inode_lock_res_init(struct ocfs2_lock_res *res, | 60 | void 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); |
63 | void ocfs2_dentry_lock_res_init(struct ocfs2_dentry_lock *dl, | ||
64 | u64 parent, struct inode *inode); | ||
61 | void ocfs2_lock_res_free(struct ocfs2_lock_res *res); | 65 | void ocfs2_lock_res_free(struct ocfs2_lock_res *res); |
62 | int ocfs2_create_new_inode_locks(struct inode *inode); | 66 | int ocfs2_create_new_inode_locks(struct inode *inode); |
67 | int ocfs2_create_new_lock(struct ocfs2_super *osb, | ||
68 | struct ocfs2_lock_res *lockres, int ex); | ||
63 | int ocfs2_drop_inode_locks(struct inode *inode); | 69 | int ocfs2_drop_inode_locks(struct inode *inode); |
64 | int ocfs2_data_lock_full(struct inode *inode, | 70 | int 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); |
94 | int ocfs2_rename_lock(struct ocfs2_super *osb); | 100 | int ocfs2_rename_lock(struct ocfs2_super *osb); |
95 | void ocfs2_rename_unlock(struct ocfs2_super *osb); | 101 | void ocfs2_rename_unlock(struct ocfs2_super *osb); |
102 | int ocfs2_dentry_lock(struct dentry *dentry, int ex); | ||
103 | void ocfs2_dentry_unlock(struct dentry *dentry, int ex); | ||
104 | |||
96 | void ocfs2_mark_lockres_freeing(struct ocfs2_lock_res *lockres); | 105 | void ocfs2_mark_lockres_freeing(struct ocfs2_lock_res *lockres); |
106 | void 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 */ |
99 | void ocfs2_process_blocked_lock(struct ocfs2_super *osb, | 110 | void ocfs2_process_blocked_lock(struct ocfs2_super *osb, |