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-arm-kernel, linux-fsdevel, linux-kselftest, linux-mm, linux-riscv, lkml
Reply to
Mike Rapoport, 2021-04-20
On Tue, Apr 20, 2021 at 06:00:49PM +0300, Mike Rapoport wrote:
quoted hunk ↗ jump to hunk
+	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
Thread (5 messages) 5 messages, 3 authors, last reply 2021-05-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help