]> git.baikalelectronics.ru Git - kernel.git/commit
mm: shmem: use helper macro __ATTR_RW
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 22 Mar 2022 21:40:04 +0000 (14:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:02 +0000 (15:57 -0700)
commit31ff237f4568caea22a55d4ec79679b911455fda
tree8e23b5ad7c6ceff17537208c97a5ef7c1e9b8945
parent16ab34ae02c10f61e82a7d0fa72b307541a7c6d4
mm: shmem: use helper macro __ATTR_RW

Use helper macro __ATTR_RW to define shmem_enabled_attr to make code
more clear.  Minor readability improvement.

Link: https://lkml.kernel.org/r/20220312082252.55586-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/shmem.c