]> 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)
commitf38fe644be5c2afcd84fb7a51af7e6038ad1ddf2
treea2c5daf27c3fe8c0d674518556c99bc7465fc07e
parentcc82bcf8775510bc41886e4b94c24534a9ab0809
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