Skip to content

Commit

Permalink
zswap: docs/vm: Fix typo accept_threshold_percent in zswap.rst
Browse files Browse the repository at this point in the history
Recently, I switched over from swap-file to zramswap.

When reading the Documentation/vm/zswap.rst file I fell over this typo.

The parameter is called accept_threshold_percent not accept_threhsold_percent
in /sys/module/zswap/parameters/ directory.

Fixes: 45190f0 ("mm/zswap.c: add allocation hysteresis if pool limit is hit")
Cc: Vitaly Wool <vitaly.wool@konsulko.com>
Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
Link: https://lore.kernel.org/r/20200601005911.31222-1-sedat.dilek@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
  • Loading branch information
Sedat Dilek authored and Jonathan Corbet committed Jun 1, 2020
1 parent b8170fa commit 9469b39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/vm/zswap.rst
Original file line number Diff line number Diff line change
@@ -140,10 +140,10 @@ without any real benefit but with a performance drop for the system), a
special parameter has been introduced to implement a sort of hysteresis to
refuse taking pages into zswap pool until it has sufficient space if the limit
has been hit. To set the threshold at which zswap would start accepting pages
again after it became full, use the sysfs ``accept_threhsold_percent``
again after it became full, use the sysfs ``accept_threshold_percent``
attribute, e. g.::

echo 80 > /sys/module/zswap/parameters/accept_threhsold_percent
echo 80 > /sys/module/zswap/parameters/accept_threshold_percent

Setting this parameter to 100 will disable the hysteresis.

0 comments on commit 9469b39

Please sign in to comment.