linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yanteng Si <si.yanteng@linux.dev>
To: Pengyu Zhang <zpenya1314@gmail.com>,
	alexs@kernel.org, siyanteng@loongson.cn, corbet@lwn.net,
	seakeel@gmail.com
Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
	yaxin_wang_uestc@163.com, zenghui.yu@linux.dev
Subject: Re: [PATCH v5 3/3] Docs/zh_CN: Fix the pfn calculation error in page_tables.rst
Date: Tue, 15 Oct 2024 10:30:08 +0800	[thread overview]
Message-ID: <47e92158-4fdb-4fd7-808c-b6735d7ee787@linux.dev> (raw)
In-Reply-To: <20241014155526.17065-4-zpenya1314@gmail.com>




在 2024/10/14 23:55, Pengyu Zhang 写道:
> Synchronize the changes of origin document to fix the pfn value.
>
> Signed-off-by: Pengyu Zhang <zpenya1314@gmail.com>
Reviewed-by: Yanteng Si <si.yanteng@linux.dev>

Thanks,
Yanteng
> ---
>   Documentation/translations/zh_CN/mm/page_tables.rst | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/translations/zh_CN/mm/page_tables.rst b/Documentation/translations/zh_CN/mm/page_tables.rst
> index 544381c348b1..b0700a5a8bf1 100644
> --- a/Documentation/translations/zh_CN/mm/page_tables.rst
> +++ b/Documentation/translations/zh_CN/mm/page_tables.rst
> @@ -32,7 +32,7 @@ Linux 将页表定义为一个分级结构,目前有五级。对于支持的
>   在页粒度为 4KB 且地址范围为32位的情况下,pfn 0 对应地址0x00000000,pfn 1 对应
>   地址0x00001000,pfn 2 对应地址 0x00002000,以此类推,直到 pfn 0xfffff 对应
>   0xfffff000。如果页粒度为 16KB,则 pfn 分别对应地址 0x00004000、0x00008000
> -... 0xffffc000,pfn 的范围从 0 到 0x3fffff。
> +... 0xffffc000,pfn 的范围从 0 到 0x3ffff。
>   
>   如你所见,对于 4KB 页面粒度,页基址使用地址的 12-31 位,这就是为什么在这种情况下
>   `PAGE_SHIFT` 被定义为 12,并且 `PAGE_SIZE` 通常由页偏移定义,为 `(1 << PAGE_SHIFT)`。


      reply	other threads:[~2024-10-15  2:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-14 15:55 [PATCH v5 0/3] Translate page_tables.rst and fix PFN calculation Pengyu Zhang
2024-10-14 15:55 ` [PATCH v5 1/3] Docs/zh_CN: Translate page_tables.rst to Simplified Chinese Pengyu Zhang
2024-10-15  2:23   ` Yanteng Si
2024-10-14 15:55 ` [PATCH v5 2/3] Docs/mm: Fix a mistake for pfn in page_tables.rst Pengyu Zhang
2024-10-15  2:29   ` Yanteng Si
2024-10-14 15:55 ` [PATCH v5 3/3] Docs/zh_CN: Fix the pfn calculation error " Pengyu Zhang
2024-10-15  2:30   ` Yanteng Si [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47e92158-4fdb-4fd7-808c-b6735d7ee787@linux.dev \
    --to=si.yanteng@linux.dev \
    --cc=alexs@kernel.org \
    --cc=corbet@lwn.net \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=seakeel@gmail.com \
    --cc=siyanteng@loongson.cn \
    --cc=yaxin_wang_uestc@163.com \
    --cc=zenghui.yu@linux.dev \
    --cc=zpenya1314@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).