[PATCH OLK-6.6] fs/resctrl: Fix return value in rdtgroup_pseudo_locked_in_hierarchy()

hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8T2RT -------------------------------- The implementation of the rdtgroup_pseudo_locked_in_hierarchy() relies on the CONFIG_RESCTRL_FS_PSEUDO_LOCK. When this configuration is disabled, the function should return false according to its return type, instead of EOPNOTSUPP. Fixes: dd5cb90e6b16 ("x86/resctrl: Allow an architecture to disable pseudo lock") Signed-off-by: Zeng Heng <zengheng4@huawei.com> --- fs/resctrl/psuedo_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/resctrl/psuedo_lock.c b/fs/resctrl/psuedo_lock.c index 2fa42d0a33ea..f2737fd562cf 100644 --- a/fs/resctrl/psuedo_lock.c +++ b/fs/resctrl/psuedo_lock.c @@ -656,7 +656,7 @@ bool rdtgroup_pseudo_locked_in_hierarchy(struct rdt_domain *d) lockdep_assert_cpus_held(); if (!IS_ENABLED(CONFIG_RESCTRL_FS_PSEUDO_LOCK)) - return -EOPNOTSUPP; + return false; if (!zalloc_cpumask_var(&cpu_with_psl, GFP_KERNEL)) return true; -- 2.25.1

反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/16705 邮件列表地址:https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/NQF... FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://gitee.com/openeuler/kernel/pulls/16705 Mailing list address: https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/NQF...
participants (2)
-
patchwork bot
-
Zeng Heng