mm/secretmem: fix GUP-fast succeeding on secretmem folios
[linux-block.git] / include / linux / secretmem.h
index 35f3a4a8ceb1e3276f3be9ebb68a1dd275f50de0..acf7e1a3f3def9fd4027aa659ba1d4dec8e944b0 100644 (file)
@@ -13,10 +13,10 @@ static inline bool folio_is_secretmem(struct folio *folio)
        /*
         * Using folio_mapping() is quite slow because of the actual call
         * instruction.
-        * We know that secretmem pages are not compound and LRU so we can
+        * We know that secretmem pages are not compound, so we can
         * save a couple of cycles here.
         */
-       if (folio_test_large(folio) || !folio_test_lru(folio))
+       if (folio_test_large(folio))
                return false;
 
        mapping = (struct address_space *)