Lines Matching refs:kdamonds_arr
1613 struct damon_sysfs_kdamond **kdamonds_arr; member
1624 struct damon_sysfs_kdamond **kdamonds_arr = kdamonds->kdamonds_arr; in damon_sysfs_kdamonds_rm_dirs() local
1628 damon_sysfs_kdamond_rm_dirs(kdamonds_arr[i]); in damon_sysfs_kdamonds_rm_dirs()
1629 kobject_put(&kdamonds_arr[i]->kobj); in damon_sysfs_kdamonds_rm_dirs()
1632 kfree(kdamonds_arr); in damon_sysfs_kdamonds_rm_dirs()
1633 kdamonds->kdamonds_arr = NULL; in damon_sysfs_kdamonds_rm_dirs()
1653 struct damon_sysfs_kdamond **kdamonds_arr, *kdamond; in damon_sysfs_kdamonds_add_dirs() local
1656 if (damon_sysfs_kdamonds_busy(kdamonds->kdamonds_arr, kdamonds->nr)) in damon_sysfs_kdamonds_add_dirs()
1663 kdamonds_arr = kmalloc_array(nr_kdamonds, sizeof(*kdamonds_arr), in damon_sysfs_kdamonds_add_dirs()
1665 if (!kdamonds_arr) in damon_sysfs_kdamonds_add_dirs()
1667 kdamonds->kdamonds_arr = kdamonds_arr; in damon_sysfs_kdamonds_add_dirs()
1686 kdamonds_arr[i] = kdamond; in damon_sysfs_kdamonds_add_dirs()