Skip to contentSkip to conversation

mm-filemap-reinitialize-folio-_mapcount-directly.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 29, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled

     Subject: mm/filemap: reinitialize folio->_mapcount directly

has been removed from the -mm tree. Its filename was
mm-filemap-reinitialize-folio-_mapcount-directly.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: David Hildenbrand <[email protected]>
Subject: mm/filemap: reinitialize folio->_mapcount directly
Date: Wed, 29 May 2024 13:19:03 +0200

Let's get rid of the page_mapcount_reset() call and simply reinitialize folio->_mapcount directly.

---

 mm/filemap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/filemap.c renamed from mm/filemap.c~mm-filemap-reinitialize-folio-_mapcount-directly +1 -1
@@ -177,7 +177,7 @@ static void filemap_unaccount_folio(stru
 				 * and we'd rather not leak it: if we're wrong,
 				 * another bad page check should catch it later.
 				 */
-				page_mapcount_reset(&folio->page);
+				atomic_set(&folio->_mapcount, -1);
 				folio_ref_sub(folio, mapcount);
 			}
 		}

_

Patches currently in -mm which might be from [email protected] are