aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/mkswap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index 30a364ced..1fc648f3a 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -320,11 +320,7 @@ int mkswap_main(int argc, char **argv)
320 } 320 }
321 321
322 if (version == -1) { 322 if (version == -1) {
323 if (PAGES <= V0_MAX_PAGES) 323 if (get_kernel_revision() < MAKE_VERSION(2, 1, 117))
324 version = 0;
325 else if (get_kernel_revision() < MAKE_VERSION(2, 1, 117))
326 version = 0;
327 else if (pagesize < 2048)
328 version = 0; 324 version = 0;
329 else 325 else
330 version = 1; 326 version = 1;