|
@@ -1781,9 +1781,9 @@ static int zcache_frontswap_poolid = -1;
|
|
|
* Swizzling increases objects per swaptype, increasing tmem concurrency
|
|
|
* for heavy swaploads. Later, larger nr_cpus -> larger SWIZ_BITS
|
|
|
* Setting SWIZ_BITS to 27 basically reconstructs the swap entry from
|
|
|
- * frontswap_get_page()
|
|
|
+ * frontswap_get_page(), but has side-effects. Hence using 8.
|
|
|
*/
|
|
|
-#define SWIZ_BITS 27
|
|
|
+#define SWIZ_BITS 8
|
|
|
#define SWIZ_MASK ((1 << SWIZ_BITS) - 1)
|
|
|
#define _oswiz(_type, _ind) ((_type << SWIZ_BITS) | (_ind & SWIZ_MASK))
|
|
|
#define iswiz(_ind) (_ind >> SWIZ_BITS)
|