Skip to contentSkip to conversation

format shell command as code block

PATCH In review Weiji Wang 3 participants 4 messages Mar 18, 2024 – Mar 19, 2024

Subsystems (3)
lore
Share & tools
lore

Weiji Wang

author
#0 lore raw

PATCH 1/1 format shell command as code block

This formats the last two shell commands in Documentation/admin-guide/mm/zswap.rst as code blocks.

---
 Documentation/admin-guide/mm/zswap.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/admin-guide/mm/zswap.rst +2 -2
index b42132969..85612d705 100644
@@ -155,7 +155,7 @@ Setting this parameter to 100 will disable the hysteresis.
 
 Some users cannot tolerate the swapping that comes with zswap store failures
 and zswap writebacks. Swapping can be disabled entirely (without disabling
-zswap itself) on a cgroup-basis as follows:
+zswap itself) on a cgroup-basis as follows:::
 
 	echo 0 > /sys/fs/cgroup/<cgroup-name>/memory.zswap.writeback
 
@@ -166,7 +166,7 @@ writeback (because the same pages might be rejected again and again).
 When there is a sizable amount of cold memory residing in the zswap pool, it
 can be advantageous to proactively write these cold pages to swap and reclaim
 the memory for other use cases. By default, the zswap shrinker is disabled.
-User can enable it as follows:
+User can enable it as follows:::
 
   echo Y > /sys/module/zswap/parameters/shrinker_enabled
 
Signature · 1 line
2.43.0
#1 lore raw
Quoted 2 lines · Weiji Wang

This formats the last two shell commands in Documentation/admin-guide/mm/zswap.rst as code blocks.

Why?

Also missing Signed-off-by.

Confused...

Signature · 1 line
An old man doll... just what I always wanted! - Clara
maintainer
#2 lore raw
In reply to Weiji Wang
Quoted 6 lines · Weiji Wang

This formats the last two shell commands in Documentation/admin-guide/mm/zswap.rst as code blocks.

---
 Documentation/admin-guide/mm/zswap.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

The *idea* of the change is fine, but there are a couple of problems here. I can't take a patch without a signed-off-by line, so you'll need to resubmit with that.

Documentation/admin-guide/mm/zswap.rst Setting this parameter to 100 will disable the hysteresis. · line 160

Quoted 12 lines
Documentation/admin-guide/mm/zswap.rst +1 -1
index b42132969..85612d705 100644
@@ -155,7 +155,7 @@ Setting this parameter to 100 will disable the hysteresis.
 
 Some users cannot tolerate the swapping that comes with zswap store failures
 and zswap writebacks. Swapping can be disabled entirely (without disabling
-zswap itself) on a cgroup-basis as follows:
+zswap itself) on a cgroup-basis as follows:::
 
 	echo 0 > /sys/fs/cgroup/<cgroup-name>/memory.zswap.writeback

Why three colons? "as follows::" will do what you want.

Thanks,

jon

author
#3 lore raw

PATCH 1/1 docs: zswap: fix shell command format

Quoted 3 lines

The *idea* of the change is fine, but there are a couple of problems here. I can't take a patch without a signed-off-by line, so you'll need to resubmit with that.

I will resubmit after correcting the format later. Sorry for any inconvenience.

Quoted 1 line

Why three colons? "as follows::" will do what you want.

I see. I will also edit that.