[PATCH v20 4/8] rust: page: convert to `Ownable`
Danilo Krummrich
dakr at kernel.org
Tue Aug 25 13:34:05 UTC 2026
On Mon Aug 24, 2026 at 1:17 PM CEST, Andreas Hindborg wrote:
> rust/kernel/alloc/allocator.rs | 19 +++---
> rust/kernel/alloc/allocator/iter.rs | 6 +-
Acked-by: Danilo Krummrich <dakr at kernel.org>
> - pub unsafe fn to_page<'a>(ptr: NonNull<u8>) -> page::BorrowedPage<'a> {
> + pub unsafe fn to_page<'a>(ptr: NonNull<u8>) -> &'a page::Page {
Of course the mechanical conversion is fine as is, but while at it, mind to just
import Page, such that the odd page::Page thing goes away?
Thanks,
Danilo
More information about the Linux-security-module-archive
mailing list