]> 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)
commitd1201f2bd5051a4a1f99aa581de5663f06486d44
treea76c2b9012ba609ab8192b5f07c7751bd8da56f4
parentec55c07522cf6c7241e384f2859aa27a28348bd3
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