diff options
Diffstat (limited to 'fs/ocfs2/alloc.h')
-rw-r--r-- | fs/ocfs2/alloc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ocfs2/alloc.h b/fs/ocfs2/alloc.h index c301cf225f0b..3eb735eedae6 100644 --- a/fs/ocfs2/alloc.h +++ b/fs/ocfs2/alloc.h | |||
@@ -176,6 +176,10 @@ static inline void ocfs2_init_dealloc_ctxt(struct ocfs2_cached_dealloc_ctxt *c) | |||
176 | } | 176 | } |
177 | int ocfs2_cache_cluster_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt, | 177 | int ocfs2_cache_cluster_dealloc(struct ocfs2_cached_dealloc_ctxt *ctxt, |
178 | u64 blkno, unsigned int bit); | 178 | u64 blkno, unsigned int bit); |
179 | static inline int ocfs2_dealloc_has_cluster(struct ocfs2_cached_dealloc_ctxt *c) | ||
180 | { | ||
181 | return c->c_global_allocator != NULL; | ||
182 | } | ||
179 | int ocfs2_run_deallocs(struct ocfs2_super *osb, | 183 | int ocfs2_run_deallocs(struct ocfs2_super *osb, |
180 | struct ocfs2_cached_dealloc_ctxt *ctxt); | 184 | struct ocfs2_cached_dealloc_ctxt *ctxt); |
181 | 185 | ||