]> git.baikalelectronics.ru Git - kernel.git/commit
ksm: remove dedicated macro KSM_FLAG_MASK
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 5 May 2021 01:37:42 +0000 (18:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 5 May 2021 18:27:25 +0000 (11:27 -0700)
commit08a9bb58a6a6f2f48dbc8a32b1a0e962b3c7a836
tree915b54f636e978294e1cce00cf9a88ea1c2f3c8d
parent05770c7f7967b6a19910ac245b27b6a06b7499dd
ksm: remove dedicated macro KSM_FLAG_MASK

The macro KSM_FLAG_MASK is used in rmap_walk_ksm() only.  So we can
replace ~KSM_FLAG_MASK with PAGE_MASK to remove this dedicated macro and
make code more consistent because PAGE_MASK is used elsewhere in this
file.

Link: https://lkml.kernel.org/r/20210330140228.45635-4-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/ksm.c