* [PATCH] memory tier: Use helper macro __ATTR_RW()
@ 2023-07-15 3:37 Miaohe Lin
2023-07-15 3:48 ` Miaohe Lin
0 siblings, 1 reply; 2+ messages in thread
From: Miaohe Lin @ 2023-07-15 3:37 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, linux-kernel, linmiaohe
Use helper macro __ATTR_RW to define numa demotion attributes. Minor
readability improvement.
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
mm/memory-tiers.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/mm/memory-tiers.c b/mm/memory-tiers.c
index c49ab03f49b1..2898701b5209 100644
--- a/mm/memory-tiers.c
+++ b/mm/memory-tiers.c
@@ -693,8 +693,7 @@ static ssize_t numa_demotion_enabled_store(struct kobject *kobj,
}
static struct kobj_attribute numa_demotion_enabled_attr =
- __ATTR(demotion_enabled, 0644, numa_demotion_enabled_show,
- numa_demotion_enabled_store);
+ __ATTR_RW(numa_demotion_enabled);
static struct attribute *numa_attrs[] = {
&numa_demotion_enabled_attr.attr,
--
2.33.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] memory tier: Use helper macro __ATTR_RW()
2023-07-15 3:37 [PATCH] memory tier: Use helper macro __ATTR_RW() Miaohe Lin
@ 2023-07-15 3:48 ` Miaohe Lin
0 siblings, 0 replies; 2+ messages in thread
From: Miaohe Lin @ 2023-07-15 3:48 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, linux-kernel
On 2023/7/15 11:37, Miaohe Lin wrote:
> Use helper macro __ATTR_RW to define numa demotion attributes. Minor
> readability improvement.
>
Sorry, I shouldn't change the interface name. Please ignore this patch.
Will send a new one.
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-15 3:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-15 3:37 [PATCH] memory tier: Use helper macro __ATTR_RW() Miaohe Lin
2023-07-15 3:48 ` Miaohe Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox