Skip to content

Commit 6675af9

Browse files
Thadeu Lima de Souza Cascardohtejun
authored andcommitted
cgroup/dmem: remove region parameter from dmemcg_parse_limit
dmemcg_parse_limit does not use the region parameter. Remove it. Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 4ef420b commit 6675af9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

kernel/cgroup/dmem.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,7 @@ static int dmem_cgroup_region_capacity_show(struct seq_file *sf, void *v)
707707
return 0;
708708
}
709709

710-
static int dmemcg_parse_limit(char *options, struct dmem_cgroup_region *region,
711-
u64 *new_limit)
710+
static int dmemcg_parse_limit(char *options, u64 *new_limit)
712711
{
713712
char *end;
714713

@@ -762,7 +761,7 @@ static ssize_t dmemcg_limit_write(struct kernfs_open_file *of,
762761
if (!region)
763762
return -EINVAL;
764763

765-
err = dmemcg_parse_limit(options, region, &new_limit);
764+
err = dmemcg_parse_limit(options, &new_limit);
766765
if (err < 0)
767766
goto out_put;
768767

0 commit comments

Comments
 (0)