Re: [PATCH] mm/hugetlb: reduce arch dependent code about huge_pmd_unshare

From: Andrew Morton
Date: Thu Apr 23 2015 - 18:11:26 EST


On Tue, 14 Apr 2015 15:35:04 +0800 Zhang Zhen <zhenzhang.zhang@xxxxxxxxxx> wrote:

> Currently we have many duplicates in definitions of huge_pmd_unshare.
> In all architectures this function just returns 0 when
> CONFIG_ARCH_WANT_HUGE_PMD_SHARE is N.
>
> This patch put the default implementation in mm/hugetlb.c and lets
> these architecture use the common code.

Memory fails me. Why do some architectures (arm, arm64, x86_64) want
huge_pmd_[un]share() while other architectures (ia64, tile, mips,
powerpc, metag, sh, s390) do not?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/