lkml.org 
[lkml]   [2023]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH 0/3] Use nth_page() in place of direct struct page manipulation
    Date
    From: Zi Yan <ziy@nvidia.com>

    On SPARSEMEM without VMEMMAP, struct page is not guaranteed to be
    contiguous, since each memory section's memmap might be allocated
    independently. hugetlb pages can go beyond a memory section size, thus
    direct struct page manipulation on hugetlb pages/subpages might give
    wrong struct page. Kernel provides nth_page() to do the manipulation
    properly. Use that whenever code can see hugetlb pages.

    The patches are on top of next-20230830.

    Zi Yan (3):
    mm: use nth_page() in place of direct struct page manipulation.
    fs: use nth_page() in place of direct struct page manipulation.
    mips: use nth_page() in place of direct struct page manipulation.

    arch/mips/mm/cache.c | 2 +-
    fs/hugetlbfs/inode.c | 4 ++--
    mm/cma.c | 2 +-
    mm/hugetlb.c | 2 +-
    mm/memory_hotplug.c | 2 +-
    5 files changed, 6 insertions(+), 6 deletions(-)

    --
    2.40.1

    \
     
     \ /
      Last update: 2023-08-30 21:08    [W:2.246 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site