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>
This commit is contained in:
Родитель
01c6222f87
Коммит
b7ac233515
|
@ -53,8 +53,6 @@
|
||||||
*/
|
*/
|
||||||
static u16 ocfs2_calc_new_backup_super(struct inode *inode,
|
static u16 ocfs2_calc_new_backup_super(struct inode *inode,
|
||||||
struct ocfs2_group_desc *gd,
|
struct ocfs2_group_desc *gd,
|
||||||
int new_clusters,
|
|
||||||
u32 first_new_cluster,
|
|
||||||
u16 cl_cpg,
|
u16 cl_cpg,
|
||||||
int set)
|
int set)
|
||||||
{
|
{
|
||||||
|
@ -127,8 +125,6 @@ static int ocfs2_update_last_group_and_inode(handle_t *handle,
|
||||||
OCFS2_FEATURE_COMPAT_BACKUP_SB)) {
|
OCFS2_FEATURE_COMPAT_BACKUP_SB)) {
|
||||||
backups = ocfs2_calc_new_backup_super(bm_inode,
|
backups = ocfs2_calc_new_backup_super(bm_inode,
|
||||||
group,
|
group,
|
||||||
new_clusters,
|
|
||||||
first_new_cluster,
|
|
||||||
cl_cpg, 1);
|
cl_cpg, 1);
|
||||||
le16_add_cpu(&group->bg_free_bits_count, -1 * backups);
|
le16_add_cpu(&group->bg_free_bits_count, -1 * backups);
|
||||||
}
|
}
|
||||||
|
@ -167,8 +163,6 @@ out_rollback:
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
ocfs2_calc_new_backup_super(bm_inode,
|
ocfs2_calc_new_backup_super(bm_inode,
|
||||||
group,
|
group,
|
||||||
new_clusters,
|
|
||||||
first_new_cluster,
|
|
||||||
cl_cpg, 0);
|
cl_cpg, 0);
|
||||||
le16_add_cpu(&group->bg_free_bits_count, backups);
|
le16_add_cpu(&group->bg_free_bits_count, backups);
|
||||||
le16_add_cpu(&group->bg_bits, -1 * num_bits);
|
le16_add_cpu(&group->bg_bits, -1 * num_bits);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче