We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6a491c commit d824ec2Copy full SHA for d824ec2
mm/vmscan.c
@@ -1967,6 +1967,16 @@ static unsigned int shrink_folio_list(struct list_head *folio_list,
1967
}
1968
1969
1970
+ /*
1971
+ * Folio is unmapped now so it cannot be newly pinned anymore.
1972
+ * No point in trying to reclaim folio if it is pinned.
1973
+ * Furthermore we don't want to reclaim underlying fs metadata
1974
+ * if the folio is pinned and thus potentially modified by the
1975
+ * pinning process as that may upset the filesystem.
1976
+ */
1977
+ if (folio_maybe_dma_pinned(folio))
1978
+ goto activate_locked;
1979
+
1980
mapping = folio_mapping(folio);
1981
if (folio_test_dirty(folio)) {
1982
/*
0 commit comments