aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/resize.c
diff options
context:
space:
mode:
authorJoseph Qi <joseph.qi@huawei.com>2014-06-04 19:06:15 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 19:53:54 -0400
commitb7ac233515c6263d6cb471d9e0f57bdd7ea36894 (patch)
treed2bd3ac03c272a90e9e679fc727513beb61a99b8 /fs/ocfs2/resize.c
parent01c6222f876062355599e5a63560c514b6de25d2 (diff)
ocfs2: cleanup unused paramters in ocfs2_calc_new_backup_super
Parameters new_clusters and first_new_cluster are not used in ocfs2_update_last_group_and_inode, so remove them. Signed-off-by: Joseph Qi <joseph.qi@huawei.com> Reviewed-by: joyce.xue <xuejiufei@huawei.com> Cc: Mark Fasheh <mfasheh@suse.com> Cc: Joel Becker <jlbec@evilplan.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/resize.c')
-rw-r--r--fs/ocfs2/resize.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ocfs2/resize.c b/fs/ocfs2/resize.c
index 822ebc10f281..168739c2ad2b 100644
--- a/fs/ocfs2/resize.c
+++ b/fs/ocfs2/resize.c
@@ -53,8 +53,6 @@
53 */ 53 */
54static u16 ocfs2_calc_new_backup_super(struct inode *inode, 54static u16 ocfs2_calc_new_backup_super(struct inode *inode,
55 struct ocfs2_group_desc *gd, 55 struct ocfs2_group_desc *gd,
56 int new_clusters,
57 u32 first_new_cluster,
58 u16 cl_cpg, 56 u16 cl_cpg,
59 int set) 57 int set)
60{ 58{
@@ -127,8 +125,6 @@ static int ocfs2_update_last_group_and_inode(handle_t *handle,
127 OCFS2_FEATURE_COMPAT_BACKUP_SB)) { 125 OCFS2_FEATURE_COMPAT_BACKUP_SB)) {
128 backups = ocfs2_calc_new_backup_super(bm_inode, 126 backups = ocfs2_calc_new_backup_super(bm_inode,
129 group, 127 group,
130 new_clusters,
131 first_new_cluster,
132 cl_cpg, 1); 128 cl_cpg, 1);
133 le16_add_cpu(&group->bg_free_bits_count, -1 * backups); 129 le16_add_cpu(&group->bg_free_bits_count, -1 * backups);
134 } 130 }
@@ -167,8 +163,6 @@ out_rollback:
167 if (ret < 0) { 163 if (ret < 0) {
168 ocfs2_calc_new_backup_super(bm_inode, 164 ocfs2_calc_new_backup_super(bm_inode,
169 group, 165 group,
170 new_clusters,
171 first_new_cluster,
172 cl_cpg, 0); 166 cl_cpg, 0);
173 le16_add_cpu(&group->bg_free_bits_count, backups); 167 le16_add_cpu(&group->bg_free_bits_count, backups);
174 le16_add_cpu(&group->bg_bits, -1 * num_bits); 168 le16_add_cpu(&group->bg_bits, -1 * num_bits);