diff options
author | SeongJae Park <sj38.park@gmail.com> | 2024-03-09 12:49:11 -0800 |
---|---|---|
committer | SeongJae Park <sj38.park@gmail.com> | 2024-03-09 12:49:11 -0800 |
commit | 0588f6ba455e9ae36b5bbc826340c0258029f317 (patch) | |
tree | 58103d54f2ebfc71e510f816c4589494b684c145 | |
parent | a296f06c2506f932ce309770a78f8c638e45ec3b (diff) | |
download | damo-0588f6ba455e9ae36b5bbc826340c0258029f317.tar.gz |
_damon_sysfs/update_supported_features(): Fix wrong goal metric check
'target_metric' is in goal directory, but the code is checking goals
directory. Fix it.
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
-rw-r--r-- | _damon_sysfs.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/_damon_sysfs.py b/_damon_sysfs.py index 2029362f..c423aa6e 100644 --- a/_damon_sysfs.py +++ b/_damon_sysfs.py @@ -837,11 +837,9 @@ def update_supported_features(): if os.path.isfile(os.path.join(scheme_dir_of(0, 0, 0), 'quotas', 'effective_bytes')): feature_supports['schemes_quota_effective_bytes'] = True - - if os.path.isfile(os.path.join( - scheme_dir_of(0, 0, 0), 'quotas', 'goals', 'target_metric')): - feature_supports['schemes_quota_goal_metric'] = True - feature_supports['schemes_quota_goal_some_psi'] = True + # goal_metric and goal_some_psi will be merged together with effective bytes. + feature_supports['schemes_quota_goal_metric'] = True + feature_supports['schemes_quota_goal_some_psi'] = True avail_ops, err = _avail_ops() if err == None: |