]> git.baikalelectronics.ru Git - kernel.git/commit
mm: page->mapping folio->mapping should have the same offset
authorWei Yang <richard.weiyang@gmail.com>
Sat, 29 Jan 2022 21:41:04 +0000 (13:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 30 Jan 2022 07:56:58 +0000 (09:56 +0200)
commit536f4217ced62b671bd759f6b549621a5654a70f
treea2c5daf27c3fe8c0d674518556c99bc7465fc07e
parent61e28cf0543c7d8e6ef88c3c305f727c5a21ba5b
mm: page->mapping folio->mapping should have the same offset

As with the other members of folio, the offset of page->mapping and
folio->mapping must be the same.  The compile-time check was
inadvertently removed during development.  Add it back.

[willy@infradead.org: changelog redo]

Link: https://lkml.kernel.org/r/20220104011734.21714-1-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm_types.h