aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/journal.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/journal.h')
-rw-r--r--fs/ocfs2/journal.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/ocfs2/journal.h b/fs/ocfs2/journal.h
index 9f3d79dac33b..6b5d548ca117 100644
--- a/fs/ocfs2/journal.h
+++ b/fs/ocfs2/journal.h
@@ -143,7 +143,6 @@ struct ocfs2_journal_lock {
143struct ocfs2_journal_handle { 143struct ocfs2_journal_handle {
144 handle_t *k_handle; /* kernel handle. */ 144 handle_t *k_handle; /* kernel handle. */
145 struct ocfs2_journal *journal; 145 struct ocfs2_journal *journal;
146 u32 flags; /* see flags below. */
147 146
148 /* The following two fields are for ocfs2_handle_add_lock */ 147 /* The following two fields are for ocfs2_handle_add_lock */
149 int num_locks; 148 int num_locks;
@@ -154,22 +153,6 @@ struct ocfs2_journal_handle {
154 struct list_head inode_list; 153 struct list_head inode_list;
155}; 154};
156 155
157#define OCFS2_HANDLE_STARTED 1
158/* should we sync-commit this handle? */
159#define OCFS2_HANDLE_SYNC 2
160static inline int ocfs2_handle_started(struct ocfs2_journal_handle *handle)
161{
162 return handle->flags & OCFS2_HANDLE_STARTED;
163}
164
165static inline void ocfs2_handle_set_sync(struct ocfs2_journal_handle *handle, int sync)
166{
167 if (sync)
168 handle->flags |= OCFS2_HANDLE_SYNC;
169 else
170 handle->flags &= ~OCFS2_HANDLE_SYNC;
171}
172
173/* Exported only for the journal struct init code in super.c. Do not call. */ 156/* Exported only for the journal struct init code in super.c. Do not call. */
174void ocfs2_complete_recovery(void *data); 157void ocfs2_complete_recovery(void *data);
175 158