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/localalloc.c | |
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/localalloc.c')
-rw-r--r-- | fs/ocfs2/localalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/localalloc.c b/fs/ocfs2/localalloc.c index 9538bbe028d4..aab1b634cc8e 100644 --- a/fs/ocfs2/localalloc.c +++ b/fs/ocfs2/localalloc.c | |||
@@ -1161,7 +1161,7 @@ static int ocfs2_local_alloc_new_window(struct ocfs2_super *osb, | |||
1161 | /* we used the generic suballoc reserve function, but we set | 1161 | /* we used the generic suballoc reserve function, but we set |
1162 | * everything up nicely, so there's no reason why we can't use | 1162 | * everything up nicely, so there's no reason why we can't use |
1163 | * the more specific cluster api to claim bits. */ | 1163 | * the more specific cluster api to claim bits. */ |
1164 | status = ocfs2_claim_clusters(osb, handle, ac, osb->local_alloc_bits, | 1164 | status = ocfs2_claim_clusters(handle, ac, osb->local_alloc_bits, |
1165 | &cluster_off, &cluster_count); | 1165 | &cluster_off, &cluster_count); |
1166 | if (status == -ENOSPC) { | 1166 | if (status == -ENOSPC) { |
1167 | retry_enospc: | 1167 | retry_enospc: |
@@ -1175,7 +1175,7 @@ retry_enospc: | |||
1175 | goto bail; | 1175 | goto bail; |
1176 | 1176 | ||
1177 | ac->ac_bits_wanted = osb->local_alloc_default_bits; | 1177 | ac->ac_bits_wanted = osb->local_alloc_default_bits; |
1178 | status = ocfs2_claim_clusters(osb, handle, ac, | 1178 | status = ocfs2_claim_clusters(handle, ac, |
1179 | osb->local_alloc_bits, | 1179 | osb->local_alloc_bits, |
1180 | &cluster_off, | 1180 | &cluster_off, |
1181 | &cluster_count); | 1181 | &cluster_count); |