From: David Daney Date: Tue, 24 Feb 2015 23:35:34 +0000 (-0800) Subject: MIPS: Expand __swp_offset() to carry 40 significant bits for 64-bit kernel. X-Git-Tag: omap-for-v4.1/fixes-rc1~111^2~110 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ae03b1220ac22b823d8414997329806db16020c;p=pandora-kernel.git MIPS: Expand __swp_offset() to carry 40 significant bits for 64-bit kernel. With CONFIG_MIGRATION, the PFN of the migrating pages is stored in __swp_offset(), so we must have enough bits to store the largest possible PFN. OCTEON NUMA systems have 41 bits of physical address space, so with 4K pages (12-bits), we need at least 29 bits to store the PFN. The current width of 24-bits is too narrow, so expand it all the way out to 40-bits. This leaves the low order 16 bits as zero which does not interfere with any of the PTE bits. Signed-off-by: David Daney Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9315/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed