All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] format shell command as code block
@ 2024-03-18 14:01 Weiji Wang
  2024-03-19  2:05 ` Bagas Sanjaya
  2024-03-19  7:51 ` Jonathan Corbet
  0 siblings, 2 replies; 4+ messages in thread
From: Weiji Wang @ 2024-03-18 14:01 UTC (permalink / raw)
  To: linux-doc; +Cc: 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(-)

diff --git a/Documentation/admin-guide/mm/zswap.rst b/Documentation/admin-guide/mm/zswap.rst
index b42132969..85612d705 100644
--- a/Documentation/admin-guide/mm/zswap.rst
+++ b/Documentation/admin-guide/mm/zswap.rst
@@ -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
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] format shell command as code block
  2024-03-18 14:01 [PATCH] format shell command as code block Weiji Wang
@ 2024-03-19  2:05 ` Bagas Sanjaya
  2024-03-19  7:51 ` Jonathan Corbet
  1 sibling, 0 replies; 4+ messages in thread
From: Bagas Sanjaya @ 2024-03-19  2:05 UTC (permalink / raw)
  To: Weiji Wang, linux-doc

[-- Attachment #1: Type: text/plain, Size: 282 bytes --]

On Mon, Mar 18, 2024 at 10:01:25PM +0800, Weiji Wang wrote:
> This formats the last two shell commands in
> Documentation/admin-guide/mm/zswap.rst as code blocks.

Why?

Also missing Signed-off-by.

Confused...

-- 
An old man doll... just what I always wanted! - Clara

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] format shell command as code block
  2024-03-18 14:01 [PATCH] format shell command as code block Weiji Wang
  2024-03-19  2:05 ` Bagas Sanjaya
@ 2024-03-19  7:51 ` Jonathan Corbet
  2024-03-19 11:35   ` [PATCH] docs: zswap: fix shell command format Weiji Wang
  1 sibling, 1 reply; 4+ messages in thread
From: Jonathan Corbet @ 2024-03-19  7:51 UTC (permalink / raw)
  To: Weiji Wang, linux-doc; +Cc: Weiji Wang

Weiji Wang <nebclllo0444@gmail.com> writes:

> 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.

> diff --git a/Documentation/admin-guide/mm/zswap.rst b/Documentation/admin-guide/mm/zswap.rst
> index b42132969..85612d705 100644
> --- a/Documentation/admin-guide/mm/zswap.rst
> +++ b/Documentation/admin-guide/mm/zswap.rst
> @@ -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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] docs: zswap: fix shell command format
  2024-03-19  7:51 ` Jonathan Corbet
@ 2024-03-19 11:35   ` Weiji Wang
  0 siblings, 0 replies; 4+ messages in thread
From: Weiji Wang @ 2024-03-19 11:35 UTC (permalink / raw)
  To: corbet; +Cc: linux-doc

> 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.

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

I see. I will also edit that.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-19 11:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-18 14:01 [PATCH] format shell command as code block Weiji Wang
2024-03-19  2:05 ` Bagas Sanjaya
2024-03-19  7:51 ` Jonathan Corbet
2024-03-19 11:35   ` [PATCH] docs: zswap: fix shell command format Weiji Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.