Main-line Linux kernel tree http://www.kernel.org
Go to file
Kemeng Shi b5ffd29733 mm/page_alloc: use get_pfnblock_migratetype to avoid extra page_to_pfn
We have get_pageblock_migratetype and get_pfnblock_migratetype to get
migratetype of page.  get_pfnblock_migratetype accepts both page and pfn
from caller while get_pageblock_migratetype only accept page and get pfn
with page_to_pfn from page.

In case we already record pfn of page, we can simply call
get_pfnblock_migratetype to avoid a page_to_pfn.

Link: https://lkml.kernel.org/r/20230811115945.3423894-3-shikemeng@huaweicloud.com
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-08-21 13:37:51 -07:00
arch powerpc/book3s64/memhotplug: enable memmap on memory for radix 2023-08-21 13:37:49 -07:00
block
certs
crypto
Documentation mm/memory_hotplug: support memmap_on_memory when memmap is not aligned to pageblocks 2023-08-21 13:37:49 -07:00
drivers mm/memory_hotplug: embed vmem_altmap details in memory block 2023-08-21 13:37:49 -07:00
fs mm: memtest: convert to memtest_report_meminfo() 2023-08-21 13:37:47 -07:00
include mm/memory_hotplug: embed vmem_altmap details in memory block 2023-08-21 13:37:49 -07:00
init mm: remove arguments of show_mem() 2023-08-18 10:12:02 -07:00
io_uring
ipc
kernel perf/core: use vma_is_initial_stack() and vma_is_initial_heap() 2023-08-21 13:37:32 -07:00
lib maple_tree: replace data before marking dead in split and spanning store 2023-08-21 13:37:41 -07:00
LICENSES
mm mm/page_alloc: use get_pfnblock_migratetype to avoid extra page_to_pfn 2023-08-21 13:37:51 -07:00
net mm: allow per-VMA locks on file-backed VMAs 2023-08-18 10:12:51 -07:00
rust
samples
scripts x86: 2023-07-30 11:19:08 -07:00
security selinux: use vma_is_initial_stack() and vma_is_initial_heap() 2023-08-21 13:37:31 -07:00
sound
tools selftests/damon/sysfs: test damon_target filter 2023-08-21 13:37:37 -07:00
usr
virt KVM: Grab a reference to KVM for VM and vCPU stats file descriptors 2023-07-29 11:05:28 -04:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS mm: kill frontswap 2023-08-21 13:37:26 -07:00
Makefile Linux 6.5-rc4 2023-07-30 13:23:47 -07:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.