aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/alloc.c
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2010-05-06 01:59:06 -0400
committerTao Ma <tao.ma@oracle.com>2010-05-06 01:59:06 -0400
commit1ed9b777f77929ae961d6f9cdf828a07200ba71c (patch)
treea0bb6c9e9be1f5d3d46d6cdac0a4397303e22795 /fs/ocfs2/alloc.c
parent13e434cf0cacd2f03a7f4cd077e3e995ef5ef710 (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/alloc.c')
-rw-r--r--fs/ocfs2/alloc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 0cb2945eb817..b6e2ba1f6a7b 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -1015,8 +1015,7 @@ static int ocfs2_create_new_meta_bhs(handle_t *handle,
1015 1015
1016 count = 0; 1016 count = 0;
1017 while (count < wanted) { 1017 while (count < wanted) {
1018 status = ocfs2_claim_metadata(osb, 1018 status = ocfs2_claim_metadata(handle,
1019 handle,
1020 meta_ac, 1019 meta_ac,
1021 wanted - count, 1020 wanted - count,
1022 &suballoc_bit_start, 1021 &suballoc_bit_start,
@@ -4786,7 +4785,7 @@ int ocfs2_add_clusters_in_btree(handle_t *handle,
4786 goto leave; 4785 goto leave;
4787 } 4786 }
4788 4787
4789 status = __ocfs2_claim_clusters(osb, handle, data_ac, 1, 4788 status = __ocfs2_claim_clusters(handle, data_ac, 1,
4790 clusters_to_add, &bit_off, &num_bits); 4789 clusters_to_add, &bit_off, &num_bits);
4791 if (status < 0) { 4790 if (status < 0) {
4792 if (status != -ENOSPC) 4791 if (status != -ENOSPC)
@@ -7201,7 +7200,7 @@ int ocfs2_convert_inline_data_to_extents(struct inode *inode,
7201 7200
7202 data_ac->ac_resv = &OCFS2_I(inode)->ip_la_data_resv; 7201 data_ac->ac_resv = &OCFS2_I(inode)->ip_la_data_resv;
7203 7202
7204 ret = ocfs2_claim_clusters(osb, handle, data_ac, 1, &bit_off, 7203 ret = ocfs2_claim_clusters(handle, data_ac, 1, &bit_off,
7205 &num); 7204 &num);
7206 if (ret) { 7205 if (ret) {
7207 mlog_errno(ret); 7206 mlog_errno(ret);