diff options
author | Baolin Wang <baolin.wang@linux.alibaba.com> | 2021-09-09 00:18:01 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-09-09 00:32:34 +0200 |
commit | 2b9b624f5aef6af608edf541fed973948e27004c (patch) | |
tree | 3fc74f497d41fbd6be1d776200d3432d07fc4a8b /scripts/extract-module-sig.pl | |
parent | mm/vmstat: protect per cpu variables with preempt disable on RT (diff) | |
download | linux-2b9b624f5aef6af608edf541fed973948e27004c.tar.xz linux-2b9b624f5aef6af608edf541fed973948e27004c.zip |
mm: migrate: introduce a local variable to get the number of pages
Use thp_nr_pages() instead of compound_nr() to get the number of pages for
THP page, meanwhile introducing a local variable 'nr_pages' to avoid
getting the number of pages repeatedly.
Link: https://lkml.kernel.org/r/a8e331ac04392ee230c79186330fb05e86a2aa77.1629447552.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Reviewed-by: Yang Shi <shy828301@gmail.com>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/extract-module-sig.pl')
0 files changed, 0 insertions, 0 deletions