+ mm-page-mapping-folio-mapping-should-have-the-same-offset.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm: page->mapping folio->mapping should have the same offset
has been added to the -mm tree.  Its filename is
     mm-page-mapping-folio-mapping-should-have-the-same-offset.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/mm-page-mapping-folio-mapping-should-have-the-same-offset.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/mm-page-mapping-folio-mapping-should-have-the-same-offset.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Wei Yang <richard.weiyang@xxxxxxxxx>
Subject: mm: page->mapping folio->mapping should have the same offset

In commit 7b230db3b8d3 ("mm: Introduce struct folio"), folio is
introduced.  This is a folio of page, so we need to make sure those
members of folio should be at the same offset in page.

The offset of mapping is not checked. This patch just adds it.

Link: https://lkml.kernel.org/r/20220104011734.21714-1-richard.weiyang@xxxxxxxxx
Signed-off-by: Wei Yang <richard.weiyang@xxxxxxxxx>
Cc: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/mm_types.h |    1 +
 1 file changed, 1 insertion(+)

--- a/include/linux/mm_types.h~mm-page-mapping-folio-mapping-should-have-the-same-offset
+++ a/include/linux/mm_types.h
@@ -289,6 +289,7 @@ static_assert(sizeof(struct page) == siz
 	static_assert(offsetof(struct page, pg) == offsetof(struct folio, fl))
 FOLIO_MATCH(flags, flags);
 FOLIO_MATCH(lru, lru);
+FOLIO_MATCH(mapping, mapping);
 FOLIO_MATCH(compound_head, lru);
 FOLIO_MATCH(index, index);
 FOLIO_MATCH(private, private);
_

Patches currently in -mm which might be from richard.weiyang@xxxxxxxxx are

mm-page-mapping-folio-mapping-should-have-the-same-offset.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux