diff options
-rw-r--r-- | drivers/staging/zcache/zcache-main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/zcache/zcache-main.c b/drivers/staging/zcache/zcache-main.c index ae0ed82dd3cb..ce07087750a6 100644 --- a/drivers/staging/zcache/zcache-main.c +++ b/drivers/staging/zcache/zcache-main.c | |||
@@ -1781,9 +1781,9 @@ static int zcache_frontswap_poolid = -1; | |||
1781 | * Swizzling increases objects per swaptype, increasing tmem concurrency | 1781 | * Swizzling increases objects per swaptype, increasing tmem concurrency |
1782 | * for heavy swaploads. Later, larger nr_cpus -> larger SWIZ_BITS | 1782 | * for heavy swaploads. Later, larger nr_cpus -> larger SWIZ_BITS |
1783 | * Setting SWIZ_BITS to 27 basically reconstructs the swap entry from | 1783 | * Setting SWIZ_BITS to 27 basically reconstructs the swap entry from |
1784 | * frontswap_get_page() | 1784 | * frontswap_get_page(), but has side-effects. Hence using 8. |
1785 | */ | 1785 | */ |
1786 | #define SWIZ_BITS 27 | 1786 | #define SWIZ_BITS 8 |
1787 | #define SWIZ_MASK ((1 << SWIZ_BITS) - 1) | 1787 | #define SWIZ_MASK ((1 << SWIZ_BITS) - 1) |
1788 | #define _oswiz(_type, _ind) ((_type << SWIZ_BITS) | (_ind & SWIZ_MASK)) | 1788 | #define _oswiz(_type, _ind) ((_type << SWIZ_BITS) | (_ind & SWIZ_MASK)) |
1789 | #define iswiz(_ind) (_ind >> SWIZ_BITS) | 1789 | #define iswiz(_ind) (_ind >> SWIZ_BITS) |