docs/mm: remove useless markup
Subsystems (14)
Mike Rapoport
maintainerv3 cover docs/mm: remove useless markup
From: "Mike Rapoport (IBM)" <[email protected]>
Hi,
Following Jon's gripe about top-of-file labels [1], I went ahead and updated admin-guide/mm and mm docs to use file names instead of labels for document cross-referencing.
[1] https://lore.kernel.org/all/[email protected]
v3:
* fix more missed references in zn_CH translation (kbuild)
* add markup removal in Documentation/mm/physical_memory.rst as the first patch in the series to keep Fixe: and Acked-by: tags
* rebase on docs-next
v2: https://lore.kernel.org/all/[email protected]
* fix missed reference in zn_CH translation (kbuild)
v1: https://lore.kernel.org/all/[email protected]
Mike Rapoport (IBM) (3):
docs/mm: Physical Memory: remove useless markup
docs/mm: remove useless markup
docs/admin-guide/mm: remove useless markup
Documentation/admin-guide/mm/concepts.rst | 13 +++++-------- Documentation/admin-guide/mm/hugetlbpage.rst | 4 +--- Documentation/admin-guide/mm/idle_page_tracking.rst | 7 ++----- Documentation/admin-guide/mm/index.rst | 3 +-- Documentation/admin-guide/mm/ksm.rst | 2 -- Documentation/admin-guide/mm/memory-hotplug.rst | 2 -- Documentation/admin-guide/mm/numa_memory_policy.rst | 2 -- Documentation/admin-guide/mm/numaperf.rst | 2 -- Documentation/admin-guide/mm/pagemap.rst | 11 ++++------- Documentation/admin-guide/mm/shrinker_debugfs.rst | 2 -- Documentation/admin-guide/mm/soft-dirty.rst | 2 -- Documentation/admin-guide/mm/swap_numa.rst | 2 -- Documentation/admin-guide/mm/transhuge.rst | 2 -- Documentation/admin-guide/mm/userfaultfd.rst | 2 -- Documentation/admin-guide/mm/zswap.rst | 2 -- Documentation/core-api/dma-api.rst | 2 -- Documentation/mm/active_mm.rst | 2 -- Documentation/mm/arch_pgtable_helpers.rst | 2 -- Documentation/mm/balance.rst | 2 -- Documentation/mm/free_page_reporting.rst | 2 -- Documentation/mm/frontswap.rst | 2 -- Documentation/mm/highmem.rst | 2 -- Documentation/mm/hmm.rst | 4 +--- Documentation/mm/hugetlbfs_reserv.rst | 4 +--- Documentation/mm/hwpoison.rst | 2 -- Documentation/mm/ksm.rst | 4 +--- Documentation/mm/memory-model.rst | 2 -- Documentation/mm/mmu_notifier.rst | 2 -- Documentation/mm/numa.rst | 4 +--- Documentation/mm/page_frags.rst | 2 -- Documentation/mm/page_migration.rst | 6 ++---- Documentation/mm/page_owner.rst | 2 -- Documentation/mm/page_reclaim.rst | 2 -- Documentation/mm/page_table_check.rst | 2 -- Documentation/mm/physical_memory.rst | 12 ++++++------ Documentation/mm/remap_file_pages.rst | 2 -- Documentation/mm/slub.rst | 2 -- Documentation/mm/split_page_table_lock.rst | 2 -- Documentation/mm/transhuge.rst | 2 -- Documentation/mm/unevictable-lru.rst | 2 -- Documentation/mm/z3fold.rst | 2 -- Documentation/mm/zsmalloc.rst | 2 -- .../translations/zh_CN/admin-guide/mm/index.rst | 2 +- Documentation/translations/zh_CN/mm/hmm.rst | 2 +- .../translations/zh_CN/mm/hugetlbfs_reserv.rst | 2 +- Documentation/translations/zh_CN/mm/numa.rst | 2 +- 46 files changed, 29 insertions(+), 113 deletions(-)
base-commit: 747a5a95bf3e48feba8350265aeed85a6b516bbd
Signature · 1 line
2.35.1
Mike Rapoport
maintainerPATCH v3 1/3 docs/mm: Physical Memory: remove useless markup
From: "Mike Rapoport (IBM)" <[email protected]>
Jon says:
Quoted 1 line
+See also :ref:
Page Reclaim <page_reclaim>.
Can also just be "See also Documentation/mm/page_reclaim.rst". The right things will happen in the HTML output, readers of the plain-text will know immediately where to go, and we don't have to add the label clutter.
Remove reference markup and unnecessary labes and use plain file names.
--- Documentation/core-api/dma-api.rst | 2 -- Documentation/mm/page_reclaim.rst | 2 -- Documentation/mm/physical_memory.rst | 12 ++++++------ 3 files changed, 6 insertions(+), 10 deletions(-)
Documentation/core-api/dma-api.rst +0 -2
@@ -1,5 +1,3 @@ -.. _dma_api: - ============================================ Dynamic DMA mapping using the generic device ============================================
Documentation/mm/page_reclaim.rst +0 -2
@@ -1,7 +1,5 @@ .. SPDX-License-Identifier: GPL-2.0 -.. _page_reclaim: - ============ Page Reclaim ============
Documentation/mm/physical_memory.rst +6 -6
@@ -39,8 +39,8 @@ one of the types described below. * ``ZONE_DMA`` and ``ZONE_DMA32`` historically represented memory suitable for DMA by peripheral devices that cannot access all of the addressable memory. For many years there are better more and robust interfaces to get - memory with DMA specific requirements (:ref:`DMA API <dma_api>`), but - ``ZONE_DMA`` and ``ZONE_DMA32`` still represent memory ranges that have + memory with DMA specific requirements (Documentation/core-api/dma-api.rst), + but ``ZONE_DMA`` and ``ZONE_DMA32`` still represent memory ranges that have restrictions on how they can be accessed. Depending on the architecture, either of these zone types or even they both can be disabled at build time using ``CONFIG_ZONE_DMA`` and
@@ -64,9 +64,9 @@ one of the types described below. change, their content may move between different physical pages. Often ``ZONE_MOVABLE`` is populated during memory hotplug, but it may be also populated on boot using one of ``kernelcore``, ``movablecore`` and - ``movable_node`` kernel command line parameters. See :ref:`Page migration - <page_migration>` and :ref:`Memory Hot(Un)Plug <admin_guide_memory_hotplug>` - for additional details. + ``movable_node`` kernel command line parameters. See + Documentation/mm/page_migration.rst and + Documentation/admin-guide/mm/memory_hotplug.rst for additional details. * ``ZONE_DEVICE`` represents memory residing on devices such as PMEM and GPU. It has different characteristics than RAM zone types and it exists to provide
@@ -252,7 +252,7 @@ General Reclaim control ~~~~~~~~~~~~~~~ -See also :ref:`Page Reclaim <page_reclaim>`. +See also Documentation/mm/page_reclaim.rst. ``kswapd`` Per-node instance of kswapd kernel thread.
Signature · 1 line
2.35.1
Mike Rapoport
maintainerPATCH v3 2/3 docs/mm: remove useless markup
In reply to Mike RapoportFrom: "Mike Rapoport (IBM)" <[email protected]>
It is enough to use a file name to cross-reference another rst document.
Jon says:
The right things will happen in the HTML output, readers of the plain-text will know immediately where to go, and we don't have to add the label clutter.
Drop reference markup and unnecessary labels and use plain file names.
--- Documentation/mm/active_mm.rst | 2 -- Documentation/mm/arch_pgtable_helpers.rst | 2 -- Documentation/mm/balance.rst | 2 -- Documentation/mm/free_page_reporting.rst | 2 -- Documentation/mm/frontswap.rst | 2 -- Documentation/mm/highmem.rst | 2 -- Documentation/mm/hmm.rst | 4 +--- Documentation/mm/hugetlbfs_reserv.rst | 4 +--- Documentation/mm/hwpoison.rst | 2 -- Documentation/mm/ksm.rst | 4 +--- Documentation/mm/memory-model.rst | 2 -- Documentation/mm/mmu_notifier.rst | 2 -- Documentation/mm/numa.rst | 4 +--- Documentation/mm/page_frags.rst | 2 -- Documentation/mm/page_migration.rst | 6 ++---- Documentation/mm/page_owner.rst | 2 -- Documentation/mm/page_table_check.rst | 2 -- Documentation/mm/remap_file_pages.rst | 2 -- Documentation/mm/slub.rst | 2 -- Documentation/mm/split_page_table_lock.rst | 2 -- Documentation/mm/transhuge.rst | 2 -- Documentation/mm/unevictable-lru.rst | 2 -- Documentation/mm/z3fold.rst | 2 -- Documentation/mm/zsmalloc.rst | 2 -- Documentation/translations/zh_CN/mm/hmm.rst | 2 +- Documentation/translations/zh_CN/mm/hugetlbfs_reserv.rst | 2 +- Documentation/translations/zh_CN/mm/numa.rst | 2 +- 27 files changed, 9 insertions(+), 57 deletions(-)
Documentation/mm/active_mm.rst +0 -2
@@ -1,5 +1,3 @@ -.. _active_mm: - ========= Active MM =========
Documentation/mm/arch_pgtable_helpers.rst +0 -2
@@ -1,7 +1,5 @@ .. SPDX-License-Identifier: GPL-2.0 -.. _arch_page_table_helpers: - =============================== Architecture Page Table Helpers ===============================
Documentation/mm/balance.rst +0 -2
@@ -1,5 +1,3 @@ -.. _balance: - ================ Memory Balancing ================
Documentation/mm/free_page_reporting.rst +0 -2
@@ -1,5 +1,3 @@ -.. _free_page_reporting: - ===================== Free Page Reporting =====================
Documentation/mm/frontswap.rst +0 -2
@@ -1,5 +1,3 @@ -.. _frontswap: - ========= Frontswap =========
Documentation/mm/highmem.rst +0 -2
@@ -1,5 +1,3 @@ -.. _highmem: - ==================== High Memory Handling ====================
Documentation/mm/hmm.rst +1 -3
@@ -1,5 +1,3 @@ -.. _hmm: - ===================================== Heterogeneous Memory Management (HMM) =====================================
@@ -304,7 +302,7 @@ devm_memunmap_pages(), and devm_release_mem_region() when the resources can be tied to a ``struct device``. The overall migration steps are similar to migrating NUMA pages within system -memory (see :ref:`Page migration <page_migration>`) but the steps are split +memory (see Documentation/mm/page_migration.rst) but the steps are split between device driver specific code and shared common code: 1. ``mmap_read_lock()``
Documentation/mm/hugetlbfs_reserv.rst +1 -3
@@ -1,5 +1,3 @@ -.. _hugetlbfs_reserve: - ===================== Hugetlbfs Reservation =====================
@@ -7,7 +5,7 @@ Hugetlbfs Reservation Overview ======== -Huge pages as described at :ref:`hugetlbpage` are typically +Huge pages as described at Documentation/mm/hugetlbpage.rst are typically preallocated for application use. These huge pages are instantiated in a task's address space at page fault time if the VMA indicates huge pages are to be used. If no huge page exists at page fault time, the task is sent
Documentation/mm/hwpoison.rst +0 -2
@@ -1,5 +1,3 @@ -.. hwpoison: - ======== hwpoison ========
Documentation/mm/ksm.rst +1 -3
@@ -1,5 +1,3 @@ -.. _ksm: - ======================= Kernel Samepage Merging =======================
@@ -8,7 +6,7 @@ KSM is a memory-saving de-duplication feature, enabled by CONFIG_KSM=y, added to the Linux kernel in 2.6.32. See ``mm/ksm.c`` for its implementation, and http://lwn.net/Articles/306704/ and https://lwn.net/Articles/330589/ -The userspace interface of KSM is described in :ref:`Documentation/admin-guide/mm/ksm.rst <admin_guide_ksm>` +The userspace interface of KSM is described in Documentation/admin-guide/mm/ksm.rst Design ======
Documentation/mm/memory-model.rst +0 -2
@@ -1,7 +1,5 @@ .. SPDX-License-Identifier: GPL-2.0 -.. _physical_memory_model: - ===================== Physical Memory Model =====================
Documentation/mm/mmu_notifier.rst +0 -2
@@ -1,5 +1,3 @@ -.. _mmu_notifier: - When do you need to notify inside page table lock ? ===================================================
Documentation/mm/numa.rst +1 -3
@@ -1,5 +1,3 @@ -.. _numa: - Started Nov 1999 by Kanoj Sarcar <[email protected]> =============
@@ -110,7 +108,7 @@ to improve NUMA locality using various CPU affinity command line interfaces, such as taskset(1) and numactl(1), and program interfaces such as sched_setaffinity(2). Further, one can modify the kernel's default local allocation behavior using Linux NUMA memory policy. [see -:ref:`Documentation/admin-guide/mm/numa_memory_policy.rst <numa_memory_policy>`]. +Documentation/admin-guide/mm/numa_memory_policy.rst]. System administrators can restrict the CPUs and nodes' memories that a non- privileged user can specify in the scheduling or NUMA commands and functions
Documentation/mm/page_frags.rst +0 -2
@@ -1,5 +1,3 @@ -.. _page_frags: - ============== Page fragments ==============
Documentation/mm/page_migration.rst +2 -4
@@ -1,5 +1,3 @@ -.. _page_migration: - ============== Page migration ==============
@@ -9,8 +7,8 @@ nodes in a NUMA system while the process is running. This means that the virtual addresses that the process sees do not change. However, the system rearranges the physical location of those pages. -Also see :ref:`Heterogeneous Memory Management (HMM) <hmm>` -for migrating pages to or from device private memory. +Also see Documentation/mm/hmm.rst for migrating pages to or from device +private memory. The main intent of page migration is to reduce the latency of memory accesses by moving pages near to the processor where the process accessing that memory
Documentation/mm/page_owner.rst +0 -2
@@ -1,5 +1,3 @@ -.. _page_owner: - ================================================== page owner: Tracking about who allocated each page ==================================================
Documentation/mm/page_table_check.rst +0 -2
@@ -1,7 +1,5 @@ .. SPDX-License-Identifier: GPL-2.0 -.. _page_table_check: - ================ Page Table Check ================
Documentation/mm/remap_file_pages.rst +0 -2
@@ -1,5 +1,3 @@ -.. _remap_file_pages: - ============================== remap_file_pages() system call ==============================
Documentation/mm/slub.rst +0 -2
@@ -1,5 +1,3 @@ -.. _slub: - ========================== Short users guide for SLUB ==========================
Documentation/mm/split_page_table_lock.rst +0 -2
@@ -1,5 +1,3 @@ -.. _split_page_table_lock: - ===================== Split page table lock =====================
Documentation/mm/transhuge.rst +0 -2
@@ -1,5 +1,3 @@ -.. _transhuge: - ============================ Transparent Hugepage Support ============================
Documentation/mm/unevictable-lru.rst +0 -2
@@ -1,5 +1,3 @@ -.. _unevictable_lru: - ============================== Unevictable LRU Infrastructure ==============================
Documentation/mm/z3fold.rst +0 -2
@@ -1,5 +1,3 @@ -.. _z3fold: - ====== z3fold ======
Documentation/mm/zsmalloc.rst +0 -2
@@ -1,5 +1,3 @@ -.. _zsmalloc: - ======== zsmalloc ========
Documentation/translations/zh_CN/mm/hmm.rst +1 -1
@@ -248,7 +248,7 @@ migrate_vma_finalize() 函数旨在使驱动程序更易于编写并集中跨驱 还有devm_request_free_mem_region(), devm_memremap_pages(), devm_memunmap_pages() 和 devm_release_mem_region() 当资源可以绑定到 ``struct device``. -整体迁移步骤类似于在系统内存中迁移 NUMA 页面(see :ref:`Page migration <page_migration>`) , +整体迁移步骤类似于在系统内存中迁移 NUMA 页面(see Documentation/mm/page_migration.rst) , 但这些步骤分为设备驱动程序特定代码和共享公共代码: 1. ``mmap_read_lock()``
Documentation/translations/zh_CN/mm/hugetlbfs_reserv.rst +1 -1
@@ -15,7 +15,7 @@ Hugetlbfs 预留 概述 ==== -:ref:`hugetlbpage` 中描述的巨页通常是预先分配给应用程序使用的。如果VMA指 +Documentation/mm/hugetlbpage.rst 中描述的巨页通常是预先分配给应用程序使用的。如果VMA指 示要使用巨页,这些巨页会在缺页异常时被实例化到任务的地址空间。如果在缺页异常 时没有巨页存在,任务就会被发送一个SIGBUS,并经常不高兴地死去。在加入巨页支 持后不久,人们决定,在mmap()时检测巨页的短缺情况会更好。这个想法是,如果
Documentation/translations/zh_CN/mm/numa.rst +1 -1
@@ -76,7 +76,7 @@ Linux将系统的硬件资源划分为多个软件抽象,称为“节点”。 系统管理员和应用程序设计者可以使用各种CPU亲和命令行接口,如taskset(1)和numactl(1),以及程 序接口,如sched_setaffinity(2),来限制任务的迁移,以改善NUMA定位。此外,人们可以使用 Linux NUMA内存策略修改内核的默认本地分配行为。 [见 -:ref:`Documentation/admin-guide/mm/numa_memory_policy.rst <numa_memory_policy>`]. +Documentation/admin-guide/mm/numa_memory_policy.rst]. 系统管理员可以使用控制组和CPUsets限制非特权用户在调度或NUMA命令和功能中可以指定的CPU和节点 的内存。 [见 Documentation/admin-guide/cgroup-v1/cpusets.rst]
Signature · 1 line
2.35.1
Mike Rapoport
maintainerPATCH v3 3/3 docs/admin-guide/mm: remove useless markup
In reply to Mike RapoportFrom: "Mike Rapoport (IBM)" <[email protected]>
It is enough to use a file name to cross-reference another rst document.
Jon says:
The right things will happen in the HTML output, readers of the plain-text will know immediately where to go, and we don't have to add the label clutter.
Drop reference markup and unnecessary labels and use plain file names.
--- Documentation/admin-guide/mm/concepts.rst | 13 +++++-------- Documentation/admin-guide/mm/hugetlbpage.rst | 4 +--- Documentation/admin-guide/mm/idle_page_tracking.rst | 7 ++----- Documentation/admin-guide/mm/index.rst | 3 +-- Documentation/admin-guide/mm/ksm.rst | 2 -- Documentation/admin-guide/mm/memory-hotplug.rst | 2 -- Documentation/admin-guide/mm/numa_memory_policy.rst | 2 -- Documentation/admin-guide/mm/numaperf.rst | 2 -- Documentation/admin-guide/mm/pagemap.rst | 11 ++++------- Documentation/admin-guide/mm/shrinker_debugfs.rst | 2 -- Documentation/admin-guide/mm/soft-dirty.rst | 2 -- Documentation/admin-guide/mm/swap_numa.rst | 2 -- Documentation/admin-guide/mm/transhuge.rst | 2 -- Documentation/admin-guide/mm/userfaultfd.rst | 2 -- Documentation/admin-guide/mm/zswap.rst | 2 -- .../translations/zh_CN/admin-guide/mm/index.rst | 2 +- 16 files changed, 14 insertions(+), 46 deletions(-)
Documentation/admin-guide/mm/concepts.rst +5 -8
@@ -1,5 +1,3 @@ -.. _mm_concepts: - ================= Concepts overview =================
@@ -86,16 +84,15 @@ memory with the huge pages. The first one is `HugeTLB filesystem`, or hugetlbfs. It is a pseudo filesystem that uses RAM as its backing store. For the files created in this filesystem the data resides in the memory and mapped using huge pages. The hugetlbfs is described at -:ref:`Documentation/admin-guide/mm/hugetlbpage.rst <hugetlbpage>`. +Documentation/admin-guide/mm/hugetlbpage.rst. Another, more recent, mechanism that enables use of the huge pages is called `Transparent HugePages`, or THP. Unlike the hugetlbfs that requires users and/or system administrators to configure what parts of the system memory should and can be mapped by the huge pages, THP manages such mappings transparently to the user and hence the -name. See -:ref:`Documentation/admin-guide/mm/transhuge.rst <admin_guide_transhuge>` -for more details about THP. +name. See Documentation/admin-guide/mm/transhuge.rst for more details +about THP. Zones =====
@@ -125,8 +122,8 @@ processor. Each bank is referred to as a `node` and for each node Linux constructs an independent memory management subsystem. A node has its own set of zones, lists of free and used pages and various statistics counters. You can find more details about NUMA in -:ref:`Documentation/mm/numa.rst <numa>` and in -:ref:`Documentation/admin-guide/mm/numa_memory_policy.rst <numa_memory_policy>`. +Documentation/mm/numa.rst` and in +Documentation/admin-guide/mm/numa_memory_policy.rst. Page cache ==========
Documentation/admin-guide/mm/hugetlbpage.rst +1 -3
@@ -1,5 +1,3 @@ -.. _hugetlbpage: - ============= HugeTLB Pages =============
@@ -313,7 +311,7 @@ memory policy mode--bind, preferred, local or interleave--may be used. The resulting effect on persistent huge page allocation is as follows: #. Regardless of mempolicy mode [see - :ref:`Documentation/admin-guide/mm/numa_memory_policy.rst <numa_memory_policy>`], + Documentation/admin-guide/mm/numa_memory_policy.rst], persistent huge pages will be distributed across the node or nodes specified in the mempolicy as if "interleave" had been specified. However, if a node in the policy does not contain sufficient contiguous
Documentation/admin-guide/mm/idle_page_tracking.rst +2 -5
@@ -1,5 +1,3 @@ -.. _idle_page_tracking: - ================== Idle Page Tracking ==================
@@ -70,9 +68,8 @@ If the tool is run initially with the appropriate option, it will mark all the queried pages as idle. Subsequent runs of the tool can then show which pages have their idle flag cleared in the interim. -See :ref:`Documentation/admin-guide/mm/pagemap.rst <pagemap>` for more -information about ``/proc/pid/pagemap``, ``/proc/kpageflags``, and -``/proc/kpagecgroup``. +See Documentation/admin-guide/mm/pagemap.rst for more information about +``/proc/pid/pagemap``, ``/proc/kpageflags``, and ``/proc/kpagecgroup``. .. _impl_details:
Documentation/admin-guide/mm/index.rst +1 -2
@@ -16,8 +16,7 @@ are described in Documentation/admin-guide/sysctl/vm.rst and in `man 5 proc`_. .. _man 5 proc: http://man7.org/linux/man-pages/man5/proc.5.html Linux memory management has its own jargon and if you are not yet -familiar with it, consider reading -:ref:`Documentation/admin-guide/mm/concepts.rst <mm_concepts>`. +familiar with it, consider reading Documentation/admin-guide/mm/concepts.rst. Here we document in detail how to interact with various mechanisms in the Linux memory management.
Documentation/admin-guide/mm/ksm.rst +0 -2
@@ -1,5 +1,3 @@ -.. _admin_guide_ksm: - ======================= Kernel Samepage Merging =======================
Documentation/admin-guide/mm/memory-hotplug.rst +0 -2
@@ -1,5 +1,3 @@ -.. _admin_guide_memory_hotplug: - ================== Memory Hot(Un)Plug ==================
Documentation/admin-guide/mm/numa_memory_policy.rst +0 -2
@@ -1,5 +1,3 @@ -.. _numa_memory_policy: - ================== NUMA Memory Policy ==================
Documentation/admin-guide/mm/numaperf.rst +0 -2
@@ -1,5 +1,3 @@ -.. _numaperf: - ============= NUMA Locality =============
Documentation/admin-guide/mm/pagemap.rst +4 -7
@@ -1,5 +1,3 @@ -.. _pagemap: - ============================= Examining Process Page Tables =============================
@@ -19,10 +17,10 @@ There are four components to pagemap: * Bits 0-4 swap type if swapped * Bits 5-54 swap offset if swapped * Bit 55 pte is soft-dirty (see - :ref:`Documentation/admin-guide/mm/soft-dirty.rst <soft_dirty>`) + Documentation/admin-guide/mm/soft-dirty.rst) * Bit 56 page exclusively mapped (since 4.2) * Bit 57 pte is uffd-wp write-protected (since 5.13) (see - :ref:`Documentation/admin-guide/mm/userfaultfd.rst <userfaultfd>`) + Documentation/admin-guide/mm/userfaultfd.rst) * Bits 58-60 zero * Bit 61 page is file-page or shared-anon (since 3.5) * Bit 62 page swapped
@@ -105,8 +103,7 @@ Short descriptions to the page flags A compound page with order N consists of 2^N physically contiguous pages. A compound page with order 2 takes the form of "HTTT", where H donates its head page and T donates its tail page(s). The major consumers of compound - pages are hugeTLB pages - (:ref:`Documentation/admin-guide/mm/hugetlbpage.rst <hugetlbpage>`), + pages are hugeTLB pages (Documentation/admin-guide/mm/hugetlbpage.rst), the SLUB etc. memory allocators and various device drivers. However in this interface, only huge/giga pages are made visible to end users.
@@ -128,7 +125,7 @@ Short descriptions to the page flags Zero page for pfn_zero or huge_zero page. 25 - IDLE The page has not been accessed since it was marked idle (see - :ref:`Documentation/admin-guide/mm/idle_page_tracking.rst <idle_page_tracking>`). + Documentation/admin-guide/mm/idle_page_tracking.rst). Note that this flag may be stale in case the page was accessed via a PTE. To make sure the flag is up-to-date one has to read ``/sys/kernel/mm/page_idle/bitmap`` first.
Documentation/admin-guide/mm/shrinker_debugfs.rst +0 -2
@@ -1,5 +1,3 @@ -.. _shrinker_debugfs: - ========================== Shrinker Debugfs Interface ==========================
Documentation/admin-guide/mm/soft-dirty.rst +0 -2
@@ -1,5 +1,3 @@ -.. _soft_dirty: - =============== Soft-Dirty PTEs ===============
Documentation/admin-guide/mm/swap_numa.rst +0 -2
@@ -1,5 +1,3 @@ -.. _swap_numa: - =========================================== Automatically bind swap device to numa node ===========================================
Documentation/admin-guide/mm/transhuge.rst +0 -2
@@ -1,5 +1,3 @@ -.. _admin_guide_transhuge: - ============================ Transparent Hugepage Support ============================
Documentation/admin-guide/mm/userfaultfd.rst +0 -2
@@ -1,5 +1,3 @@ -.. _userfaultfd: - =========== Userfaultfd ===========
Documentation/admin-guide/mm/zswap.rst +0 -2
@@ -1,5 +1,3 @@ -.. _zswap: - ===== zswap =====
Documentation/translations/zh_CN/admin-guide/mm/index.rst +1 -1
@@ -22,7 +22,7 @@ Linux内存管理是一个具有许多可配置设置的复杂系统, 且这些 .. _man 5 proc: http://man7.org/linux/man-pages/man5/proc.5.html Linux内存管理有它自己的术语,如果你还不熟悉它,请考虑阅读下面参考: -:ref:`Documentation/admin-guide/mm/concepts.rst <mm_concepts>`. +Documentation/admin-guide/mm/concepts.rst. 在此目录下,我们详细描述了如何与Linux内存管理中的各种机制交互。
Signature · 1 line
2.35.1
Quoted 19 lines · Mike Rapoport
From: "Mike Rapoport (IBM)" <[email protected]>
Hi,
Following Jon's gripe about top-of-file labels [1], I went ahead and updated admin-guide/mm and mm docs to use file names instead of labels for document cross-referencing.
[1] https://lore.kernel.org/all/[email protected]
v3:
* fix more missed references inzn_CHtranslation (kbuild)
* add markup removal inDocumentation/mm/physical_memory.rstas the first patch in the series to keep Fixe: and Acked-by: tags
* rebase on docs-nextv2: https://lore.kernel.org/all/[email protected]
* fix missed reference inzn_CHtranslation (kbuild)
Quoted 6 lines
v1: https://lore.kernel.org/all/[email protected]
Mike Rapoport (IBM) (3):
docs/mm: Physical Memory: remove useless markup
docs/mm: remove useless markup
docs/admin-guide/mm: remove useless markup
Applied, thanks for the cleanup!
jon