Skip to contentSkip to conversation

rust-page-mark-page-nid-as-inline.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 9

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: rust: page: mark Page::nid as inline
has been removed from the -mm tree. Its filename was
rust-page-mark-page-nid-as-inline.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Nakamura Shuta <[email protected]>
Subject: rust: page: mark Page::nid as inline
Date: Fri, 29 May 2026 17:53:16 +0900

When building the kernel, the following Rust symbol is generated:

  $ nm vmlinux | grep ' _R'.*Page | rustfilt
  <kernel::page::Page>::nid

Page::nid is a trivial wrapper around the C function page_to_nid. It does not make sense to go through a trivial wrapper for this function, so mark it inline.

This follows commit 878620c5a93a ("rust: page: optimize rust symbol generation for Page"), which did the same for alloc_page and drop.

---

 rust/kernel/page.rs |    1 +
 1 file changed, 1 insertion(+)
rust/kernel/page.rs renamed from rust/kernel/page.rs~rust-page-mark-page-nid-as-inline +1 -0
@@ -193,6 +193,7 @@ impl Page {
     }
 
     /// Get the node id containing this page.
+    #[inline]
     pub fn nid(&self) -> i32 {
         // SAFETY: Always safe to call with a valid page.
         unsafe { bindings::page_to_nid(self.as_ptr()) }

_

Patches currently in -mm which might be from [email protected] are