[PATCH] mm/shmem: fix THP allocation size check and fallback