mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 08:15:07 -04:00
mm/damon/sysfs: fix typos in probe_{add,rm}_dirs: s/attr/probe/
damon_sysfs_probe_{add,rm}_dirs names a variable for damon_sysf_probe as
'attr'. Probably a trivial copy-pasta error, but it makes the code not
pleasant to read. Fix those.
Link: https://lore.kernel.org/20260630141726.92246-12-sj@kernel.org
Signed-off-by: SJ Park <sj@kernel.org>
Cc: Brendan Higgins <brendan.higgins@linux.dev>
Cc: David Hildenbrand <david@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Lorenzo Stoakes <ljs@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
@@ -1073,7 +1073,7 @@ static struct damon_sysfs_probe *damon_sysfs_probe_alloc(void)
|
||||
return kzalloc_obj(struct damon_sysfs_probe);
|
||||
}
|
||||
|
||||
static int damon_sysfs_probe_add_dirs(struct damon_sysfs_probe *attr)
|
||||
static int damon_sysfs_probe_add_dirs(struct damon_sysfs_probe *probe)
|
||||
{
|
||||
struct damon_sysfs_filters *filters;
|
||||
int err;
|
||||
@@ -1081,22 +1081,22 @@ static int damon_sysfs_probe_add_dirs(struct damon_sysfs_probe *attr)
|
||||
filters = damon_sysfs_filters_alloc();
|
||||
if (!filters)
|
||||
return -ENOMEM;
|
||||
attr->filters = filters;
|
||||
probe->filters = filters;
|
||||
|
||||
err = kobject_init_and_add(&filters->kobj, &damon_sysfs_filters_ktype,
|
||||
&attr->kobj, "filters");
|
||||
&probe->kobj, "filters");
|
||||
if (err) {
|
||||
kobject_put(&filters->kobj);
|
||||
attr->filters = NULL;
|
||||
probe->filters = NULL;
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
||||
static void damon_sysfs_probe_rm_dirs(struct damon_sysfs_probe *attr)
|
||||
static void damon_sysfs_probe_rm_dirs(struct damon_sysfs_probe *probe)
|
||||
{
|
||||
if (attr->filters) {
|
||||
damon_sysfs_filters_rm_dirs(attr->filters);
|
||||
kobject_put(&attr->filters->kobj);
|
||||
if (probe->filters) {
|
||||
damon_sysfs_filters_rm_dirs(probe->filters);
|
||||
kobject_put(&probe->filters->kobj);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user