diff options
author | Joel Becker <joel.becker@oracle.com> | 2010-05-06 01:59:06 -0400 |
---|---|---|
committer | Tao Ma <tao.ma@oracle.com> | 2010-05-06 01:59:06 -0400 |
commit | 1ed9b777f77929ae961d6f9cdf828a07200ba71c (patch) | |
tree | a0bb6c9e9be1f5d3d46d6cdac0a4397303e22795 /fs/ocfs2/suballoc.h | |
parent | 13e434cf0cacd2f03a7f4cd077e3e995ef5ef710 (diff) |
ocfs2: ocfs2_claim_*() don't need an ocfs2_super argument.
They all take an ocfs2_alloc_context, which has the allocation inode.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/suballoc.h')
-rw-r--r-- | fs/ocfs2/suballoc.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/ocfs2/suballoc.h b/fs/ocfs2/suballoc.h index f5a22cd1640f..49b0b22d30cf 100644 --- a/fs/ocfs2/suballoc.h +++ b/fs/ocfs2/suballoc.h | |||
@@ -83,22 +83,19 @@ int ocfs2_reserve_clusters(struct ocfs2_super *osb, | |||
83 | u32 bits_wanted, | 83 | u32 bits_wanted, |
84 | struct ocfs2_alloc_context **ac); | 84 | struct ocfs2_alloc_context **ac); |
85 | 85 | ||
86 | int ocfs2_claim_metadata(struct ocfs2_super *osb, | 86 | int ocfs2_claim_metadata(handle_t *handle, |
87 | handle_t *handle, | ||
88 | struct ocfs2_alloc_context *ac, | 87 | struct ocfs2_alloc_context *ac, |
89 | u32 bits_wanted, | 88 | u32 bits_wanted, |
90 | u16 *suballoc_bit_start, | 89 | u16 *suballoc_bit_start, |
91 | u32 *num_bits, | 90 | u32 *num_bits, |
92 | u64 *blkno_start); | 91 | u64 *blkno_start); |
93 | int ocfs2_claim_new_inode(struct ocfs2_super *osb, | 92 | int ocfs2_claim_new_inode(handle_t *handle, |
94 | handle_t *handle, | ||
95 | struct inode *dir, | 93 | struct inode *dir, |
96 | struct buffer_head *parent_fe_bh, | 94 | struct buffer_head *parent_fe_bh, |
97 | struct ocfs2_alloc_context *ac, | 95 | struct ocfs2_alloc_context *ac, |
98 | u16 *suballoc_bit, | 96 | u16 *suballoc_bit, |
99 | u64 *fe_blkno); | 97 | u64 *fe_blkno); |
100 | int ocfs2_claim_clusters(struct ocfs2_super *osb, | 98 | int ocfs2_claim_clusters(handle_t *handle, |
101 | handle_t *handle, | ||
102 | struct ocfs2_alloc_context *ac, | 99 | struct ocfs2_alloc_context *ac, |
103 | u32 min_clusters, | 100 | u32 min_clusters, |
104 | u32 *cluster_start, | 101 | u32 *cluster_start, |
@@ -107,8 +104,7 @@ int ocfs2_claim_clusters(struct ocfs2_super *osb, | |||
107 | * Use this variant of ocfs2_claim_clusters to specify a maxiumum | 104 | * Use this variant of ocfs2_claim_clusters to specify a maxiumum |
108 | * number of clusters smaller than the allocation reserved. | 105 | * number of clusters smaller than the allocation reserved. |
109 | */ | 106 | */ |
110 | int __ocfs2_claim_clusters(struct ocfs2_super *osb, | 107 | int __ocfs2_claim_clusters(handle_t *handle, |
111 | handle_t *handle, | ||
112 | struct ocfs2_alloc_context *ac, | 108 | struct ocfs2_alloc_context *ac, |
113 | u32 min_clusters, | 109 | u32 min_clusters, |
114 | u32 max_clusters, | 110 | u32 max_clusters, |