aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorSteve Capper <[email protected]>2017-08-22 10:42:49 +0000
committerCatalin Marinas <[email protected]>2017-08-22 16:47:12 +0000
commit828f193dd62a40ade5ea8b24cb8b0a22c30df673 (patch)
tree46cab021067ad81bbfb6ea7547262ce8fa004d76 /net/unix/af_unix.c
parentarm64: Re-enable support for contiguous hugepages (diff)
downloadkernel-828f193dd62a40ade5ea8b24cb8b0a22c30df673.tar.gz
kernel-828f193dd62a40ade5ea8b24cb8b0a22c30df673.zip
arm64: hugetlb: Cleanup setup_hugepagesz
Replace a lot of if statements with switch and case labels to make it much clearer which huge page sizes are supported. Also, we prevent PUD_SIZE from being used on systems not running with 4KB PAGE_SIZE. Before if one supplied PUD_SIZE in these circumstances, then unusuable huge page sizes would be in use. Fixes: 084bd29810a5 ("ARM64: mm: HugeTLB support.") Cc: David Woods <[email protected]> Signed-off-by: Steve Capper <[email protected]> Signed-off-by: Punit Agrawal <[email protected]> Reviewed-by: Mark Rutland <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions