aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/suballoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/suballoc.c')
-rw-r--r--fs/ocfs2/suballoc.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/fs/ocfs2/suballoc.c b/fs/ocfs2/suballoc.c
index 186d2c3d524d..000d71cca6c5 100644
--- a/fs/ocfs2/suballoc.c
+++ b/fs/ocfs2/suballoc.c
@@ -49,7 +49,7 @@
49static inline void ocfs2_debug_bg(struct ocfs2_group_desc *bg); 49static inline void ocfs2_debug_bg(struct ocfs2_group_desc *bg);
50static inline void ocfs2_debug_suballoc_inode(struct ocfs2_dinode *fe); 50static inline void ocfs2_debug_suballoc_inode(struct ocfs2_dinode *fe);
51static inline u16 ocfs2_find_victim_chain(struct ocfs2_chain_list *cl); 51static inline u16 ocfs2_find_victim_chain(struct ocfs2_chain_list *cl);
52static int ocfs2_block_group_fill(struct ocfs2_journal_handle *handle, 52static int ocfs2_block_group_fill(handle_t *handle,
53 struct inode *alloc_inode, 53 struct inode *alloc_inode,
54 struct buffer_head *bg_bh, 54 struct buffer_head *bg_bh,
55 u64 group_blkno, 55 u64 group_blkno,
@@ -69,7 +69,7 @@ static int ocfs2_block_group_search(struct inode *inode,
69 u16 *bit_off, u16 *bits_found); 69 u16 *bit_off, u16 *bits_found);
70static int ocfs2_claim_suballoc_bits(struct ocfs2_super *osb, 70static int ocfs2_claim_suballoc_bits(struct ocfs2_super *osb,
71 struct ocfs2_alloc_context *ac, 71 struct ocfs2_alloc_context *ac,
72 struct ocfs2_journal_handle *handle, 72 handle_t *handle,
73 u32 bits_wanted, 73 u32 bits_wanted,
74 u32 min_bits, 74 u32 min_bits,
75 u16 *bit_off, 75 u16 *bit_off,
@@ -77,20 +77,20 @@ static int ocfs2_claim_suballoc_bits(struct ocfs2_super *osb,
77 u64 *bg_blkno); 77 u64 *bg_blkno);
78static int ocfs2_test_bg_bit_allocatable(struct buffer_head *bg_bh, 78static int ocfs2_test_bg_bit_allocatable(struct buffer_head *bg_bh,
79 int nr); 79 int nr);
80static inline int ocfs2_block_group_set_bits(struct ocfs2_journal_handle *handle, 80static inline int ocfs2_block_group_set_bits(handle_t *handle,
81 struct inode *alloc_inode, 81 struct inode *alloc_inode,
82 struct ocfs2_group_desc *bg, 82 struct ocfs2_group_desc *bg,
83 struct buffer_head *group_bh, 83 struct buffer_head *group_bh,
84 unsigned int bit_off, 84 unsigned int bit_off,
85 unsigned int num_bits); 85 unsigned int num_bits);
86static inline int ocfs2_block_group_clear_bits(struct ocfs2_journal_handle *handle, 86static inline int ocfs2_block_group_clear_bits(handle_t *handle,
87 struct inode *alloc_inode, 87 struct inode *alloc_inode,
88 struct ocfs2_group_desc *bg, 88 struct ocfs2_group_desc *bg,
89 struct buffer_head *group_bh, 89 struct buffer_head *group_bh,
90 unsigned int bit_off, 90 unsigned int bit_off,
91 unsigned int num_bits); 91 unsigned int num_bits);
92 92
93static int ocfs2_relink_block_group(struct ocfs2_journal_handle *handle, 93static int ocfs2_relink_block_group(handle_t *handle,
94 struct inode *alloc_inode, 94 struct inode *alloc_inode,
95 struct buffer_head *fe_bh, 95 struct buffer_head *fe_bh,
96 struct buffer_head *bg_bh, 96 struct buffer_head *bg_bh,
@@ -98,7 +98,7 @@ static int ocfs2_relink_block_group(struct ocfs2_journal_handle *handle,
98 u16 chain); 98 u16 chain);
99static inline int ocfs2_block_group_reasonably_empty(struct ocfs2_group_desc *bg, 99static inline int ocfs2_block_group_reasonably_empty(struct ocfs2_group_desc *bg,
100 u32 wanted); 100 u32 wanted);
101static int ocfs2_free_suballoc_bits(struct ocfs2_journal_handle *handle, 101static int ocfs2_free_suballoc_bits(handle_t *handle,
102 struct inode *alloc_inode, 102 struct inode *alloc_inode,
103 struct buffer_head *alloc_bh, 103 struct buffer_head *alloc_bh,
104 unsigned int start_bit, 104 unsigned int start_bit,
@@ -196,7 +196,7 @@ static int ocfs2_check_group_descriptor(struct super_block *sb,
196 return 0; 196 return 0;
197} 197}
198 198
199static int ocfs2_block_group_fill(struct ocfs2_journal_handle *handle, 199static int ocfs2_block_group_fill(handle_t *handle,
200 struct inode *alloc_inode, 200 struct inode *alloc_inode,
201 struct buffer_head *bg_bh, 201 struct buffer_head *bg_bh,
202 u64 group_blkno, 202 u64 group_blkno,
@@ -279,7 +279,7 @@ static int ocfs2_block_group_alloc(struct ocfs2_super *osb,
279 struct ocfs2_dinode *fe = (struct ocfs2_dinode *) bh->b_data; 279 struct ocfs2_dinode *fe = (struct ocfs2_dinode *) bh->b_data;
280 struct ocfs2_chain_list *cl; 280 struct ocfs2_chain_list *cl;
281 struct ocfs2_alloc_context *ac = NULL; 281 struct ocfs2_alloc_context *ac = NULL;
282 struct ocfs2_journal_handle *handle = NULL; 282 handle_t *handle = NULL;
283 u32 bit_off, num_bits; 283 u32 bit_off, num_bits;
284 u16 alloc_rec; 284 u16 alloc_rec;
285 u64 bg_blkno; 285 u64 bg_blkno;
@@ -747,7 +747,7 @@ static int ocfs2_block_group_find_clear_bits(struct ocfs2_super *osb,
747 return status; 747 return status;
748} 748}
749 749
750static inline int ocfs2_block_group_set_bits(struct ocfs2_journal_handle *handle, 750static inline int ocfs2_block_group_set_bits(handle_t *handle,
751 struct inode *alloc_inode, 751 struct inode *alloc_inode,
752 struct ocfs2_group_desc *bg, 752 struct ocfs2_group_desc *bg,
753 struct buffer_head *group_bh, 753 struct buffer_head *group_bh,
@@ -818,7 +818,7 @@ static inline u16 ocfs2_find_victim_chain(struct ocfs2_chain_list *cl)
818 return best; 818 return best;
819} 819}
820 820
821static int ocfs2_relink_block_group(struct ocfs2_journal_handle *handle, 821static int ocfs2_relink_block_group(handle_t *handle,
822 struct inode *alloc_inode, 822 struct inode *alloc_inode,
823 struct buffer_head *fe_bh, 823 struct buffer_head *fe_bh,
824 struct buffer_head *bg_bh, 824 struct buffer_head *bg_bh,
@@ -998,7 +998,7 @@ static int ocfs2_block_group_search(struct inode *inode,
998} 998}
999 999
1000static int ocfs2_alloc_dinode_update_counts(struct inode *inode, 1000static int ocfs2_alloc_dinode_update_counts(struct inode *inode,
1001 struct ocfs2_journal_handle *handle, 1001 handle_t *handle,
1002 struct buffer_head *di_bh, 1002 struct buffer_head *di_bh,
1003 u32 num_bits, 1003 u32 num_bits,
1004 u16 chain) 1004 u16 chain)
@@ -1028,7 +1028,7 @@ out:
1028} 1028}
1029 1029
1030static int ocfs2_search_one_group(struct ocfs2_alloc_context *ac, 1030static int ocfs2_search_one_group(struct ocfs2_alloc_context *ac,
1031 struct ocfs2_journal_handle *handle, 1031 handle_t *handle,
1032 u32 bits_wanted, 1032 u32 bits_wanted,
1033 u32 min_bits, 1033 u32 min_bits,
1034 u16 *bit_off, 1034 u16 *bit_off,
@@ -1088,7 +1088,7 @@ out:
1088} 1088}
1089 1089
1090static int ocfs2_search_chain(struct ocfs2_alloc_context *ac, 1090static int ocfs2_search_chain(struct ocfs2_alloc_context *ac,
1091 struct ocfs2_journal_handle *handle, 1091 handle_t *handle,
1092 u32 bits_wanted, 1092 u32 bits_wanted,
1093 u32 min_bits, 1093 u32 min_bits,
1094 u16 *bit_off, 1094 u16 *bit_off,
@@ -1245,7 +1245,7 @@ bail:
1245/* will give out up to bits_wanted contiguous bits. */ 1245/* will give out up to bits_wanted contiguous bits. */
1246static int ocfs2_claim_suballoc_bits(struct ocfs2_super *osb, 1246static int ocfs2_claim_suballoc_bits(struct ocfs2_super *osb,
1247 struct ocfs2_alloc_context *ac, 1247 struct ocfs2_alloc_context *ac,
1248 struct ocfs2_journal_handle *handle, 1248 handle_t *handle,
1249 u32 bits_wanted, 1249 u32 bits_wanted,
1250 u32 min_bits, 1250 u32 min_bits,
1251 u16 *bit_off, 1251 u16 *bit_off,
@@ -1362,7 +1362,7 @@ bail:
1362} 1362}
1363 1363
1364int ocfs2_claim_metadata(struct ocfs2_super *osb, 1364int ocfs2_claim_metadata(struct ocfs2_super *osb,
1365 struct ocfs2_journal_handle *handle, 1365 handle_t *handle,
1366 struct ocfs2_alloc_context *ac, 1366 struct ocfs2_alloc_context *ac,
1367 u32 bits_wanted, 1367 u32 bits_wanted,
1368 u16 *suballoc_bit_start, 1368 u16 *suballoc_bit_start,
@@ -1399,7 +1399,7 @@ bail:
1399} 1399}
1400 1400
1401int ocfs2_claim_new_inode(struct ocfs2_super *osb, 1401int ocfs2_claim_new_inode(struct ocfs2_super *osb,
1402 struct ocfs2_journal_handle *handle, 1402 handle_t *handle,
1403 struct ocfs2_alloc_context *ac, 1403 struct ocfs2_alloc_context *ac,
1404 u16 *suballoc_bit, 1404 u16 *suballoc_bit,
1405 u64 *fe_blkno) 1405 u64 *fe_blkno)
@@ -1502,7 +1502,7 @@ static inline void ocfs2_block_to_cluster_group(struct inode *inode,
1502 * of any size. 1502 * of any size.
1503 */ 1503 */
1504int ocfs2_claim_clusters(struct ocfs2_super *osb, 1504int ocfs2_claim_clusters(struct ocfs2_super *osb,
1505 struct ocfs2_journal_handle *handle, 1505 handle_t *handle,
1506 struct ocfs2_alloc_context *ac, 1506 struct ocfs2_alloc_context *ac,
1507 u32 min_clusters, 1507 u32 min_clusters,
1508 u32 *cluster_start, 1508 u32 *cluster_start,
@@ -1572,7 +1572,7 @@ bail:
1572 return status; 1572 return status;
1573} 1573}
1574 1574
1575static inline int ocfs2_block_group_clear_bits(struct ocfs2_journal_handle *handle, 1575static inline int ocfs2_block_group_clear_bits(handle_t *handle,
1576 struct inode *alloc_inode, 1576 struct inode *alloc_inode,
1577 struct ocfs2_group_desc *bg, 1577 struct ocfs2_group_desc *bg,
1578 struct buffer_head *group_bh, 1578 struct buffer_head *group_bh,
@@ -1627,7 +1627,7 @@ bail:
1627/* 1627/*
1628 * expects the suballoc inode to already be locked. 1628 * expects the suballoc inode to already be locked.
1629 */ 1629 */
1630static int ocfs2_free_suballoc_bits(struct ocfs2_journal_handle *handle, 1630static int ocfs2_free_suballoc_bits(handle_t *handle,
1631 struct inode *alloc_inode, 1631 struct inode *alloc_inode,
1632 struct buffer_head *alloc_bh, 1632 struct buffer_head *alloc_bh,
1633 unsigned int start_bit, 1633 unsigned int start_bit,
@@ -1711,7 +1711,7 @@ static inline u64 ocfs2_which_suballoc_group(u64 block, unsigned int bit)
1711 return group; 1711 return group;
1712} 1712}
1713 1713
1714int ocfs2_free_dinode(struct ocfs2_journal_handle *handle, 1714int ocfs2_free_dinode(handle_t *handle,
1715 struct inode *inode_alloc_inode, 1715 struct inode *inode_alloc_inode,
1716 struct buffer_head *inode_alloc_bh, 1716 struct buffer_head *inode_alloc_bh,
1717 struct ocfs2_dinode *di) 1717 struct ocfs2_dinode *di)
@@ -1724,7 +1724,7 @@ int ocfs2_free_dinode(struct ocfs2_journal_handle *handle,
1724 inode_alloc_bh, bit, bg_blkno, 1); 1724 inode_alloc_bh, bit, bg_blkno, 1);
1725} 1725}
1726 1726
1727int ocfs2_free_extent_block(struct ocfs2_journal_handle *handle, 1727int ocfs2_free_extent_block(handle_t *handle,
1728 struct inode *eb_alloc_inode, 1728 struct inode *eb_alloc_inode,
1729 struct buffer_head *eb_alloc_bh, 1729 struct buffer_head *eb_alloc_bh,
1730 struct ocfs2_extent_block *eb) 1730 struct ocfs2_extent_block *eb)
@@ -1737,7 +1737,7 @@ int ocfs2_free_extent_block(struct ocfs2_journal_handle *handle,
1737 bit, bg_blkno, 1); 1737 bit, bg_blkno, 1);
1738} 1738}
1739 1739
1740int ocfs2_free_clusters(struct ocfs2_journal_handle *handle, 1740int ocfs2_free_clusters(handle_t *handle,
1741 struct inode *bitmap_inode, 1741 struct inode *bitmap_inode,
1742 struct buffer_head *bitmap_bh, 1742 struct buffer_head *bitmap_bh,
1743 u64 start_blk, 1743 u64 start_blk,