mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
In the ensure_file() function, the "not_exist" code path checks whether $dir exists as a regular file. However, the intent is to verify that the target file ($file) does not exist, not the $dir. Testing $dir makes the existence check effectively useless -- it tests the wrong path and thus never catches the case where the file is unexpectedly present. Replace $dir with $file so the not_exist verification targets the correct path. Link: https://lore.kernel.org/20260706134305.5224-1-a929244872@163.com Signed-off-by: wang wei <a929244872@163.com> Reviewed-by: SJ Park <sj@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
History
|
|
|---|---|---|
| .. | ||
| .gitignore | ||
| _common.sh | ||
| _damon_sysfs.py | ||
| access_memory.c | ||
| access_memory_even.c | ||
| config | ||
| damon_nr_regions.py | ||
| damos_apply_interval.py | ||
| damos_quota.py | ||
| damos_quota_goal.py | ||
| damos_tried_regions.py | ||
| drgn_dump_damon_status.py | ||
| lru_sort.sh | ||
| Makefile | ||
| reclaim.sh | ||
| sysfs.py | ||
| sysfs.sh | ||
| sysfs_memcg_path_leak.sh | ||
| sysfs_no_op_commit_break.py | ||
| sysfs_refresh.py | ||
| sysfs_update_removed_scheme_dir.sh | ||
| sysfs_update_schemes_tried_regions_hang.py | ||
| sysfs_update_schemes_tried_regions_wss_estimation.py | ||