]> git.baikalelectronics.ru Git - kernel.git/commit
mm: filemap_unaccount_folio() large skip mapcount fixup
authorHugh Dickins <hughd@google.com>
Fri, 25 Mar 2022 01:09:52 +0000 (18:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Mar 2022 02:06:45 +0000 (19:06 -0700)
commit978a1f051ed4f027907c0b3bc595aca58c74944d
tree3740f14d9c0660c16bdc64fdfaf0c7134942ba5c
parent321ca1384513996dd83469c22ddd2940588c01d5
mm: filemap_unaccount_folio() large skip mapcount fixup

The page_mapcount_reset() when folio_mapped() while mapping_exiting() was
devised long before there were huge or compound pages in the cache.  It is
still valid for small pages, but not at all clear what's right to check
and reset on large pages.  Just don't try when folio_test_large().

Link: https://lkml.kernel.org/r/879c4426-4122-da9c-1a86-697f2c9a083@google.com
Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/filemap.c