]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_alloc.c: simplify the code by using macro K()
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 5 Nov 2021 20:40:05 +0000 (13:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:37 +0000 (13:30 -0700)
commitf94ecb50feb740fbdacf9328d6b1a77e96027bd6
tree11b93132ad5f72ab98f797484fa9924d1153fb6d
parentc283bbd2e667884e77d8a08780fa8cf1d6bbaba6
mm/page_alloc.c: simplify the code by using macro K()

Use helper macro K() to convert the pages to the corresponding size.
Minor readability improvement.

Link: https://lkml.kernel.org/r/20210902121242.41607-3-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c