[CRIU] [PATCH] ppc64: belong on sysconf to get current page size
Laurent Dufour
ldufour at linux.vnet.ibm.com
Tue May 5 08:03:22 PDT 2015
Page size may change, so page size should be read through sysconf.
Suggested-by: Christopher Covington <cov at codeaurora.org>
Signed-off-by: Laurent Dufour <ldufour at linux.vnet.ibm.com>
---
arch/ppc64/include/asm/page.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/ppc64/include/asm/page.h b/arch/ppc64/include/asm/page.h
index 169c6943d844..0df1c5734998 100644
--- a/arch/ppc64/include/asm/page.h
+++ b/arch/ppc64/include/asm/page.h
@@ -18,6 +18,6 @@
#endif
#define PAGE_PFN(addr) ((addr) / PAGE_SIZE)
-#define page_size() PAGE_SIZE
+#define page_size() sysconf(_SC_PAGESIZE)
#endif /* __CR_ASM_PAGE_H__ */
--
1.9.1
More information about the CRIU
mailing list