]> 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)
commit962812cab8dd6f4fc0cf3c80170b174df158f769
tree3740f14d9c0660c16bdc64fdfaf0c7134942ba5c
parentd69106e3f5e07c42222824ea81a977e74f19dbd6
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