]> git.baikalelectronics.ru Git - kernel.git/commit
mm/huge_memory: use helper macro __ATTR_RW
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 4 Jul 2022 13:21:53 +0000 (21:21 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:14:45 +0000 (17:14 -0700)
commit8c167decfe253d9958030eda56b739e7025f07ea
tree16afafb5817f5a26f659e5c4a46b61410590b8f3
parentf75a6a87f43fd8232ee1e505b6d3af96f80f0893
mm/huge_memory: use helper macro __ATTR_RW

Use helper macro __ATTR_RW to define use_zero_page_attr, defrag_attr and
enabled_attr to make code more clear. Minor readability improvement.

Link: https://lkml.kernel.org/r/20220704132201.14611-9-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Zach O'Keefe <zokeefe@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c