Thread (5 messages) 5 messages, 3 authors, 2021-05-07

Re: [PATCH v3 2/2] secretmem: optimize page_is_secretmem()

From: Matthew Wilcox <willy@infradead.org>
Date: 2021-05-07 15:04:34
Also in: linux-api, linux-arch, linux-fsdevel, linux-kselftest, linux-mm, linux-riscv, lkml

On Tue, Apr 20, 2021 at 06:00:49PM +0300, Mike Rapoport wrote:
+	mapping = (struct address_space *)
+		((unsigned long)page->mapping & ~PAGE_MAPPING_FLAGS);
+
+	if (mapping != page->mapping)
+		return false;
+
+	return page->mapping->a_ops == &secretmem_aops;
... why do you go back to page->mapping here?

	return mapping->a_ops == &secretmem_aops

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help