diff options
author | Huang Ying <ying.huang@intel.com> | 2023-02-13 20:34:44 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-16 20:43:54 -0800 |
commit | 6f7d760e86fa84862d749e36ebd29abf31f4f883 (patch) | |
tree | 31e613e43588042577ce467c255fbf5569f779d0 /mm/mprotect.c | |
parent | 7e12beb8ca2ac98b2ec42e0ea4b76cdc93b58654 (diff) | |
download | linux-rpi-6f7d760e86fa84862d749e36ebd29abf31f4f883.tar.gz linux-rpi-6f7d760e86fa84862d749e36ebd29abf31f4f883.tar.bz2 linux-rpi-6f7d760e86fa84862d749e36ebd29abf31f4f883.zip |
migrate_pages: move THP/hugetlb migration support check to simplify code
This is a code cleanup patch, no functionality change is expected. After
the change, the line number reduces especially in the long
migrate_pages_batch().
Link: https://lkml.kernel.org/r/20230213123444.155149-10-ying.huang@intel.com
Signed-off-by: "Huang, Ying" <ying.huang@intel.com>
Suggested-by: Alistair Popple <apopple@nvidia.com>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Bharata B Rao <bharata@amd.com>
Cc: Xin Hao <xhao@linux.alibaba.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/mprotect.c')
0 files changed, 0 insertions, 0 deletions