aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>2014-06-04 19:10:56 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-04 19:54:12 -0400
commit100873d7a777b67ad35197c5a998b5e778f8bf3f (patch)
treeedc34a8ef9239f5ee4bdae43526b282c23d55a20 /mm
parent1fdb412bd825998efbced3a16f6ce7e0329728cf (diff)
hugetlb: rename hugepage_migration_support() to ..._supported()
We already have a function named hugepages_supported(), and the similar name hugepage_migration_support() is a bit unconfortable, so let's rename it hugepage_migration_supported(). Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Acked-by: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/hugetlb.c2
-rw-r--r--mm/migrate.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 244194217e39..226910cb7c9b 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -544,7 +544,7 @@ static struct page *dequeue_huge_page_node(struct hstate *h, int nid)
544/* Movability of hugepages depends on migration support. */ 544/* Movability of hugepages depends on migration support. */
545static inline gfp_t htlb_alloc_mask(struct hstate *h) 545static inline gfp_t htlb_alloc_mask(struct hstate *h)
546{ 546{
547 if (hugepages_treat_as_movable || hugepage_migration_support(h)) 547 if (hugepages_treat_as_movable || hugepage_migration_supported(h))
548 return GFP_HIGHUSER_MOVABLE; 548 return GFP_HIGHUSER_MOVABLE;
549 else 549 else
550 return GFP_HIGHUSER; 550 return GFP_HIGHUSER;
diff --git a/mm/migrate.c b/mm/migrate.c
index 2a459675eeab..63f0cd559999 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -1039,7 +1039,7 @@ static int unmap_and_move_huge_page(new_page_t get_new_page,
1039 * tables or check whether the hugepage is pmd-based or not before 1039 * tables or check whether the hugepage is pmd-based or not before
1040 * kicking migration. 1040 * kicking migration.
1041 */ 1041 */
1042 if (!hugepage_migration_support(page_hstate(hpage))) { 1042 if (!hugepage_migration_supported(page_hstate(hpage))) {
1043 putback_active_hugepage(hpage); 1043 putback_active_hugepage(hpage);
1044 return -ENOSYS; 1044 return -ENOSYS;
1045 } 1045 }