diff options
Diffstat (limited to 'fs/ocfs2/dlmglue.h')
-rw-r--r-- | fs/ocfs2/dlmglue.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/fs/ocfs2/dlmglue.h b/fs/ocfs2/dlmglue.h index 2bb01f09c1b1..3f8d9986b8e0 100644 --- a/fs/ocfs2/dlmglue.h +++ b/fs/ocfs2/dlmglue.h | |||
@@ -49,6 +49,19 @@ struct ocfs2_meta_lvb { | |||
49 | __be32 lvb_reserved2; | 49 | __be32 lvb_reserved2; |
50 | }; | 50 | }; |
51 | 51 | ||
52 | #define OCFS2_QINFO_LVB_VERSION 1 | ||
53 | |||
54 | struct ocfs2_qinfo_lvb { | ||
55 | __u8 lvb_version; | ||
56 | __u8 lvb_reserved[3]; | ||
57 | __be32 lvb_bgrace; | ||
58 | __be32 lvb_igrace; | ||
59 | __be32 lvb_syncms; | ||
60 | __be32 lvb_blocks; | ||
61 | __be32 lvb_free_blk; | ||
62 | __be32 lvb_free_entry; | ||
63 | }; | ||
64 | |||
52 | /* ocfs2_inode_lock_full() 'arg_flags' flags */ | 65 | /* ocfs2_inode_lock_full() 'arg_flags' flags */ |
53 | /* don't wait on recovery. */ | 66 | /* don't wait on recovery. */ |
54 | #define OCFS2_META_LOCK_RECOVERY (0x01) | 67 | #define OCFS2_META_LOCK_RECOVERY (0x01) |
@@ -69,6 +82,9 @@ void ocfs2_dentry_lock_res_init(struct ocfs2_dentry_lock *dl, | |||
69 | struct ocfs2_file_private; | 82 | struct ocfs2_file_private; |
70 | void ocfs2_file_lock_res_init(struct ocfs2_lock_res *lockres, | 83 | void ocfs2_file_lock_res_init(struct ocfs2_lock_res *lockres, |
71 | struct ocfs2_file_private *fp); | 84 | struct ocfs2_file_private *fp); |
85 | struct ocfs2_mem_dqinfo; | ||
86 | void ocfs2_qinfo_lock_res_init(struct ocfs2_lock_res *lockres, | ||
87 | struct ocfs2_mem_dqinfo *info); | ||
72 | void ocfs2_lock_res_free(struct ocfs2_lock_res *res); | 88 | void ocfs2_lock_res_free(struct ocfs2_lock_res *res); |
73 | int ocfs2_create_new_inode_locks(struct inode *inode); | 89 | int ocfs2_create_new_inode_locks(struct inode *inode); |
74 | int ocfs2_drop_inode_locks(struct inode *inode); | 90 | int ocfs2_drop_inode_locks(struct inode *inode); |
@@ -103,6 +119,9 @@ int ocfs2_dentry_lock(struct dentry *dentry, int ex); | |||
103 | void ocfs2_dentry_unlock(struct dentry *dentry, int ex); | 119 | void ocfs2_dentry_unlock(struct dentry *dentry, int ex); |
104 | int ocfs2_file_lock(struct file *file, int ex, int trylock); | 120 | int ocfs2_file_lock(struct file *file, int ex, int trylock); |
105 | void ocfs2_file_unlock(struct file *file); | 121 | void ocfs2_file_unlock(struct file *file); |
122 | int ocfs2_qinfo_lock(struct ocfs2_mem_dqinfo *oinfo, int ex); | ||
123 | void ocfs2_qinfo_unlock(struct ocfs2_mem_dqinfo *oinfo, int ex); | ||
124 | |||
106 | 125 | ||
107 | void ocfs2_mark_lockres_freeing(struct ocfs2_lock_res *lockres); | 126 | void ocfs2_mark_lockres_freeing(struct ocfs2_lock_res *lockres); |
108 | void ocfs2_simple_drop_lockres(struct ocfs2_super *osb, | 127 | void ocfs2_simple_drop_lockres(struct ocfs2_super *osb, |