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)
commit4bfa8ada803af1d073c76b43d079eee72a1d442a
tree8e23b5ad7c6ceff17537208c97a5ef7c1e9b8945
parent56a8c8eb1eaf21261be8cdc4e3715239ac087342
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