All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] docs/zh_CN: Update mm to 6.0-rc7
@ 2022-09-28 10:31 Yanteng Si
  2022-09-28 10:31 ` [PATCH v1 1/2] docs/zh_CN: Update the translation of ksm " Yanteng Si
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yanteng Si @ 2022-09-28 10:31 UTC (permalink / raw)
  To: alexs, seakeel
  Cc: Yanteng Si, corbet, bobwxc, wu.xiangcheng, chenhuacai,
	jiaxun.yang, linux-doc, siyanteng01

There are two files in the zh_CN/mm
that need to be updated, let's do it.

Yanteng Si (2):
  docs/zh_CN: Update the translation of ksm to 6.0-rc7
  docs/zh_CN: Update the translation of page_owner to 6.0-rc7

 Documentation/translations/zh_CN/mm/ksm.rst        |  2 +-
 Documentation/translations/zh_CN/mm/page_owner.rst | 10 +++++++---
 2 files changed, 8 insertions(+), 4 deletions(-)

-- 
2.31.1


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

* [PATCH v1 1/2] docs/zh_CN: Update the translation of ksm to 6.0-rc7
  2022-09-28 10:31 [PATCH v1 0/2] docs/zh_CN: Update mm to 6.0-rc7 Yanteng Si
@ 2022-09-28 10:31 ` Yanteng Si
  2022-09-30  9:13   ` Alex Shi
  2022-09-28 10:31 ` [PATCH v1 2/2] docs/zh_CN: Update the translation of page_owner " Yanteng Si
  2022-10-10 19:10 ` [PATCH v1 0/2] docs/zh_CN: Update mm " Jonathan Corbet
  2 siblings, 1 reply; 6+ messages in thread
From: Yanteng Si @ 2022-09-28 10:31 UTC (permalink / raw)
  To: alexs, seakeel
  Cc: Yanteng Si, corbet, bobwxc, wu.xiangcheng, chenhuacai,
	jiaxun.yang, linux-doc, siyanteng01

Update to commit bc6a2828a963 ("ksm: add the ksm prefix
to the names of the ksm private structures")

Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
---
 Documentation/translations/zh_CN/mm/ksm.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/translations/zh_CN/mm/ksm.rst b/Documentation/translations/zh_CN/mm/ksm.rst
index d1f82e857ad7..f0f458753d0c 100644
--- a/Documentation/translations/zh_CN/mm/ksm.rst
+++ b/Documentation/translations/zh_CN/mm/ksm.rst
@@ -30,7 +30,7 @@ KSM的用户空间的接口在Documentation/translations/zh_CN/admin-guide/mm/ks
 KSM维护着稳定树中的KSM页的逆映射信息。
 
 当KSM页面的共享数小于 ``max_page_sharing`` 的虚拟内存区域(VMAs)时,则代表了
-KSM页的稳定树其中的节点指向了一个rmap_item结构体类型的列表。同时,这个KSM页
+KSM页的稳定树其中的节点指向了一个ksm_rmap_item结构体类型的列表。同时,这个KSM页
 的 ``page->mapping`` 指向了该稳定树节点。
 
 如果共享数超过了阈值,KSM将给稳定树添加第二个维度。稳定树就变成链接一个或多
-- 
2.31.1


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

* [PATCH v1 2/2] docs/zh_CN: Update the translation of page_owner to 6.0-rc7
  2022-09-28 10:31 [PATCH v1 0/2] docs/zh_CN: Update mm to 6.0-rc7 Yanteng Si
  2022-09-28 10:31 ` [PATCH v1 1/2] docs/zh_CN: Update the translation of ksm " Yanteng Si
@ 2022-09-28 10:31 ` Yanteng Si
  2022-09-30  9:13   ` Alex Shi
  2022-10-10 19:10 ` [PATCH v1 0/2] docs/zh_CN: Update mm " Jonathan Corbet
  2 siblings, 1 reply; 6+ messages in thread
From: Yanteng Si @ 2022-09-28 10:31 UTC (permalink / raw)
  To: alexs, seakeel
  Cc: Yanteng Si, corbet, bobwxc, wu.xiangcheng, chenhuacai,
	jiaxun.yang, linux-doc, siyanteng01

1)Update to commit 8f0efa81dfbc ("mm/page_owner.c: add
llseek for page_owner")

2)Translate some words into Chinese.

Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
---
 Documentation/translations/zh_CN/mm/page_owner.rst | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/Documentation/translations/zh_CN/mm/page_owner.rst b/Documentation/translations/zh_CN/mm/page_owner.rst
index b7f81d7a6589..21a6a0837d42 100644
--- a/Documentation/translations/zh_CN/mm/page_owner.rst
+++ b/Documentation/translations/zh_CN/mm/page_owner.rst
@@ -74,15 +74,19 @@ page owner在默认情况下是禁用的。所以,如果你想使用它,你
 	cat /sys/kernel/debug/page_owner > page_owner_full.txt
 	./page_owner_sort page_owner_full.txt sorted_page_owner.txt
 
-   ``page_owner_full.txt`` 的一般输出情况如下(输出信息无翻译价值)::
+   ``page_owner_full.txt`` 的一般输出情况如下::
 
 	Page allocated via order XXX, ...
 	PFN XXX ...
-	// Detailed stack
+	// 栈详情
 
 	Page allocated via order XXX, ...
 	PFN XXX ...
-	// Detailed stack
+	// 栈详情
+    默认情况下,它将以一个给定的pfn开始,做完整的pfn转储,且page_owner支持fseek。
+
+    FILE *fp = fopen("/sys/kernel/debug/page_owner", "r");
+    fseek(fp, pfn_start, SEEK_SET);
 
    ``page_owner_sort`` 工具忽略了 ``PFN`` 行,将剩余的行放在buf中,使用regexp提
    取页序值,计算buf的次数和页数,最后根据参数进行排序。
-- 
2.31.1


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

* Re: [PATCH v1 1/2] docs/zh_CN: Update the translation of ksm to 6.0-rc7
  2022-09-28 10:31 ` [PATCH v1 1/2] docs/zh_CN: Update the translation of ksm " Yanteng Si
@ 2022-09-30  9:13   ` Alex Shi
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Shi @ 2022-09-30  9:13 UTC (permalink / raw)
  To: Yanteng Si
  Cc: alexs, corbet, bobwxc, wu.xiangcheng, chenhuacai, jiaxun.yang,
	linux-doc, siyanteng01

Reviewed-by: Alex Shi <alexs@kernel.org>

On Wed, Sep 28, 2022 at 6:32 PM Yanteng Si <siyanteng@loongson.cn> wrote:
>
> Update to commit bc6a2828a963 ("ksm: add the ksm prefix
> to the names of the ksm private structures")
>
> Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
> ---
>  Documentation/translations/zh_CN/mm/ksm.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/translations/zh_CN/mm/ksm.rst b/Documentation/translations/zh_CN/mm/ksm.rst
> index d1f82e857ad7..f0f458753d0c 100644
> --- a/Documentation/translations/zh_CN/mm/ksm.rst
> +++ b/Documentation/translations/zh_CN/mm/ksm.rst
> @@ -30,7 +30,7 @@ KSM的用户空间的接口在Documentation/translations/zh_CN/admin-guide/mm/ks
>  KSM维护着稳定树中的KSM页的逆映射信息。
>
>  当KSM页面的共享数小于 ``max_page_sharing`` 的虚拟内存区域(VMAs)时,则代表了
> -KSM页的稳定树其中的节点指向了一个rmap_item结构体类型的列表。同时,这个KSM页
> +KSM页的稳定树其中的节点指向了一个ksm_rmap_item结构体类型的列表。同时,这个KSM页
>  的 ``page->mapping`` 指向了该稳定树节点。
>
>  如果共享数超过了阈值,KSM将给稳定树添加第二个维度。稳定树就变成链接一个或多
> --
> 2.31.1
>

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

* Re: [PATCH v1 2/2] docs/zh_CN: Update the translation of page_owner to 6.0-rc7
  2022-09-28 10:31 ` [PATCH v1 2/2] docs/zh_CN: Update the translation of page_owner " Yanteng Si
@ 2022-09-30  9:13   ` Alex Shi
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Shi @ 2022-09-30  9:13 UTC (permalink / raw)
  To: Yanteng Si
  Cc: alexs, corbet, bobwxc, wu.xiangcheng, chenhuacai, jiaxun.yang,
	linux-doc, siyanteng01

Reviewed-by: Alex Shi <alexs@kernel.org>

On Wed, Sep 28, 2022 at 6:32 PM Yanteng Si <siyanteng@loongson.cn> wrote:
>
> 1)Update to commit 8f0efa81dfbc ("mm/page_owner.c: add
> llseek for page_owner")
>
> 2)Translate some words into Chinese.
>
> Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
> ---
>  Documentation/translations/zh_CN/mm/page_owner.rst | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/translations/zh_CN/mm/page_owner.rst b/Documentation/translations/zh_CN/mm/page_owner.rst
> index b7f81d7a6589..21a6a0837d42 100644
> --- a/Documentation/translations/zh_CN/mm/page_owner.rst
> +++ b/Documentation/translations/zh_CN/mm/page_owner.rst
> @@ -74,15 +74,19 @@ page owner在默认情况下是禁用的。所以,如果你想使用它,你
>         cat /sys/kernel/debug/page_owner > page_owner_full.txt
>         ./page_owner_sort page_owner_full.txt sorted_page_owner.txt
>
> -   ``page_owner_full.txt`` 的一般输出情况如下(输出信息无翻译价值)::
> +   ``page_owner_full.txt`` 的一般输出情况如下::
>
>         Page allocated via order XXX, ...
>         PFN XXX ...
> -       // Detailed stack
> +       // 栈详情
>
>         Page allocated via order XXX, ...
>         PFN XXX ...
> -       // Detailed stack
> +       // 栈详情
> +    默认情况下,它将以一个给定的pfn开始,做完整的pfn转储,且page_owner支持fseek。
> +
> +    FILE *fp = fopen("/sys/kernel/debug/page_owner", "r");
> +    fseek(fp, pfn_start, SEEK_SET);
>
>     ``page_owner_sort`` 工具忽略了 ``PFN`` 行,将剩余的行放在buf中,使用regexp提
>     取页序值,计算buf的次数和页数,最后根据参数进行排序。
> --
> 2.31.1
>

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

* Re: [PATCH v1 0/2] docs/zh_CN: Update mm to 6.0-rc7
  2022-09-28 10:31 [PATCH v1 0/2] docs/zh_CN: Update mm to 6.0-rc7 Yanteng Si
  2022-09-28 10:31 ` [PATCH v1 1/2] docs/zh_CN: Update the translation of ksm " Yanteng Si
  2022-09-28 10:31 ` [PATCH v1 2/2] docs/zh_CN: Update the translation of page_owner " Yanteng Si
@ 2022-10-10 19:10 ` Jonathan Corbet
  2 siblings, 0 replies; 6+ messages in thread
From: Jonathan Corbet @ 2022-10-10 19:10 UTC (permalink / raw)
  To: Yanteng Si, alexs, seakeel
  Cc: Yanteng Si, bobwxc, wu.xiangcheng, chenhuacai, jiaxun.yang,
	linux-doc, siyanteng01

Yanteng Si <siyanteng@loongson.cn> writes:

> There are two files in the zh_CN/mm
> that need to be updated, let's do it.
>
> Yanteng Si (2):
>   docs/zh_CN: Update the translation of ksm to 6.0-rc7
>   docs/zh_CN: Update the translation of page_owner to 6.0-rc7
>
>  Documentation/translations/zh_CN/mm/ksm.rst        |  2 +-
>  Documentation/translations/zh_CN/mm/page_owner.rst | 10 +++++++---
>  2 files changed, 8 insertions(+), 4 deletions(-)

Applied, thanks.

jon

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

end of thread, other threads:[~2022-10-10 19:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-28 10:31 [PATCH v1 0/2] docs/zh_CN: Update mm to 6.0-rc7 Yanteng Si
2022-09-28 10:31 ` [PATCH v1 1/2] docs/zh_CN: Update the translation of ksm " Yanteng Si
2022-09-30  9:13   ` Alex Shi
2022-09-28 10:31 ` [PATCH v1 2/2] docs/zh_CN: Update the translation of page_owner " Yanteng Si
2022-09-30  9:13   ` Alex Shi
2022-10-10 19:10 ` [PATCH v1 0/2] docs/zh_CN: Update mm " Jonathan Corbet

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.