]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix mismerge of folio page flag manipulators
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 1 Nov 2021 21:56:37 +0000 (14:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 1 Nov 2021 21:56:37 +0000 (14:56 -0700)
commit88c0596acd3d09a0b7f1bd14e3ce3ec5890d8f44
treef160fbd65c82c24b17313897497a04d33b501e10
parentc49e1533d6559d233f8b11a2098906512d307426
mm: fix mismerge of folio page flag manipulators

I had missed a semantic conflict between commit 98bc5b89a62d ("mm: Add
folio flag manipulation functions") from the folio tree, and commit
4063ff18c873 ("mm: filemap: check if THP has hwpoisoned subpage for PMD
page fault") that added a new set of page flags.

My build tests had too many options enabled, which hid this issue.  But
if you didn't have MEMORY_FAILURE or TRANSPARENT_HUGEPAGE enabled, you'd
end up with build errors like this:

  include/linux/page-flags.h:806:29: error: macro "PAGEFLAG_FALSE" requires 2 arguments, but only 1 given
    806 | PAGEFLAG_FALSE(HasHWPoisoned)
        |                             ^

due to the missing lowercase name used for folio function naming.

Fixes: 94c48a63731a ("Merge tag 'folio-5.16' of git://git.infradead.org/users/willy/pagecache")
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Reported-by: Yang Shi <shy828301@gmail.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/page-flags.h