diff options
Diffstat (limited to 'fs/ocfs2/journal.h')
-rw-r--r-- | fs/ocfs2/journal.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/fs/ocfs2/journal.h b/fs/ocfs2/journal.h index 3f74e09b0d80..b5baaa8e710f 100644 --- a/fs/ocfs2/journal.h +++ b/fs/ocfs2/journal.h | |||
@@ -325,8 +325,7 @@ int ocfs2_journal_access(handle_t *handle, struct ocfs2_caching_info *ci, | |||
325 | * <modify the bh> | 325 | * <modify the bh> |
326 | * ocfs2_journal_dirty(handle, bh); | 326 | * ocfs2_journal_dirty(handle, bh); |
327 | */ | 327 | */ |
328 | int ocfs2_journal_dirty(handle_t *handle, | 328 | void ocfs2_journal_dirty(handle_t *handle, struct buffer_head *bh); |
329 | struct buffer_head *bh); | ||
330 | 329 | ||
331 | /* | 330 | /* |
332 | * Credit Macros: | 331 | * Credit Macros: |
@@ -562,6 +561,18 @@ static inline int ocfs2_calc_group_alloc_credits(struct super_block *sb, | |||
562 | return blocks; | 561 | return blocks; |
563 | } | 562 | } |
564 | 563 | ||
564 | /* | ||
565 | * Allocating a discontiguous block group requires the credits from | ||
566 | * ocfs2_calc_group_alloc_credits() as well as enough credits to fill | ||
567 | * the group descriptor's extent list. The caller already has started | ||
568 | * the transaction with ocfs2_calc_group_alloc_credits(). They extend | ||
569 | * it with these credits. | ||
570 | */ | ||
571 | static inline int ocfs2_calc_bg_discontig_credits(struct super_block *sb) | ||
572 | { | ||
573 | return ocfs2_extent_recs_per_gd(sb); | ||
574 | } | ||
575 | |||
565 | static inline int ocfs2_calc_tree_trunc_credits(struct super_block *sb, | 576 | static inline int ocfs2_calc_tree_trunc_credits(struct super_block *sb, |
566 | unsigned int clusters_to_del, | 577 | unsigned int clusters_to_del, |
567 | struct ocfs2_dinode *fe, | 578 | struct ocfs2_dinode *fe, |