]> git.baikalelectronics.ru Git - kernel.git/commit
mm: workingset: define macro WORKINGSET_SHIFT
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 1 Jul 2021 01:49:54 +0000 (18:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Jul 2021 03:47:28 +0000 (20:47 -0700)
commit1e4cb8ec891a39008ab06884f518d3479c603aad
treea76c2b9012ba609ab8192b5f07c7751bd8da56f4
parent662d71a1f81285eca78cba5431c7ec4c71da8207
mm: workingset: define macro WORKINGSET_SHIFT

The magic number 1 is used in several places in workingset.c.  Define a
macro WORKINGSET_SHIFT for it to improve code readability.

Link: https://lkml.kernel.org/r/20210624122307.1759342-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/workingset.c