|
@@ -923,7 +923,7 @@ unsigned long max_swapfile_size(void)
|
|
|
|
|
|
if (boot_cpu_has_bug(X86_BUG_L1TF)) {
|
|
if (boot_cpu_has_bug(X86_BUG_L1TF)) {
|
|
/* Limit the swap file size to MAX_PA/2 for L1TF workaround */
|
|
/* Limit the swap file size to MAX_PA/2 for L1TF workaround */
|
|
- unsigned long long l1tf_limit = l1tf_pfn_limit() + 1;
|
|
|
|
|
|
+ unsigned long long l1tf_limit = l1tf_pfn_limit();
|
|
/*
|
|
/*
|
|
* We encode swap offsets also with 3 bits below those for pfn
|
|
* We encode swap offsets also with 3 bits below those for pfn
|
|
* which makes the usable limit higher.
|
|
* which makes the usable limit higher.
|