diff options
Diffstat (limited to 'fs/ocfs2/alloc.h')
-rw-r--r-- | fs/ocfs2/alloc.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h index fbcb5934a081..01db0adc2150 100644 --- a/fs/ocfs2/alloc.h +++ b/fs/ocfs2/alloc.h | |||
@@ -63,6 +63,25 @@ int ocfs2_begin_truncate_log_recovery(struct ocfs2_super *osb, | |||
63 | int ocfs2_complete_truncate_log_recovery(struct ocfs2_super *osb, | 63 | int ocfs2_complete_truncate_log_recovery(struct ocfs2_super *osb, |
64 | struct ocfs2_dinode *tl_copy); | 64 | struct ocfs2_dinode *tl_copy); |
65 | 65 | ||
66 | /* | ||
67 | * Process local structure which describes the block unlinks done | ||
68 | * during an operation. This is populated via | ||
69 | * ocfs2_cache_block_dealloc(). | ||
70 | * | ||
71 | * ocfs2_run_deallocs() should be called after the potentially | ||
72 | * de-allocating routines. No journal handles should be open, and most | ||
73 | * locks should have been dropped. | ||
74 | */ | ||
75 | struct ocfs2_cached_dealloc_ctxt { | ||
76 | struct ocfs2_per_slot_free_list *c_first_suballocator; | ||
77 | }; | ||
78 | static inline void ocfs2_init_dealloc_ctxt(struct ocfs2_cached_dealloc_ctxt *c) | ||
79 | { | ||
80 | c->c_first_suballocator = NULL; | ||
81 | } | ||
82 | int ocfs2_run_deallocs(struct ocfs2_super *osb, | ||
83 | struct ocfs2_cached_dealloc_ctxt *ctxt); | ||
84 | |||
66 | struct ocfs2_truncate_context { | 85 | struct ocfs2_truncate_context { |
67 | struct inode *tc_ext_alloc_inode; | 86 | struct inode *tc_ext_alloc_inode; |
68 | struct buffer_head *tc_ext_alloc_bh; | 87 | struct buffer_head *tc_ext_alloc_bh; |