]> git.baikalelectronics.ru Git - kernel.git/commit
mm/compaction: use DEVICE_ATTR_WO macro
authorYueHaibing <yuehaibing@huawei.com>
Thu, 1 Jul 2021 01:50:48 +0000 (18:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Jul 2021 03:47:29 +0000 (20:47 -0700)
commitd477d127847f250ef9dcc23312c96e9970c0a11e
treec8687ef2fda2f649b3b73fd5575663cd342bb9fa
parent0d8f2bc6747e83023a12f1a93f04642980178e5a
mm/compaction: use DEVICE_ATTR_WO macro

Use DEVICE_ATTR_WO helper instead of plain DEVICE_ATTR, which makes the
code a bit shorter and easier to read.

Link: https://lkml.kernel.org/r/20210523064521.32912-1-yuehaibing@huawei.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/compaction.c