mm-do-not-reclaim-private-data-from-pinned-page.patch removed from -mm tree
The quilt patch titled
Subject: mm: do not reclaim private data from pinned page
has been removed from the -mm tree. Its filename was
mm-do-not-reclaim-private-data-from-pinned-page.patch
This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Jan Kara <[email protected]>
Subject: mm: do not reclaim private data from pinned page
Date: Fri, 28 Apr 2023 14:41:40 +0200
If the page is pinned, there's no point in trying to reclaim it. Furthermore if the page is from the page cache we don't want to reclaim fs-private data from the page because the pinning process may be writing to the page at any time and reclaiming fs private info on a dirty page can upset the filesystem (see link below).
---
mm/vmscan.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
mm/vmscan.c renamed from mm/vmscan.c~mm-do-not-reclaim-private-data-from-pinned-page +10 -0
@@ -1967,6 +1967,16 @@ retry: } } +/* +* Folio is unmapped now so it cannot be newly pinned anymore. +* No point in trying to reclaim folio if it is pinned. +* Furthermore we don't want to reclaim underlying fs metadata +* if the folio is pinned and thus potentially modified by the +* pinning process as that may upset the filesystem. +*/ +if (folio_maybe_dma_pinned (folio)) + goto activate_locked; + mapping =folio_mapping (folio);if (folio_test_dirty (folio)) {/*
_
Patches currently in -mm which might be from [email protected] are