diff options
| author | Shankari Anand <shankari.ak0208@gmail.com> | 2025-08-14 15:31:01 +0530 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-08-19 13:25:04 +0200 |
| commit | eed8e4c07d85c8955a44502bc1f61e4155c94051 (patch) | |
| tree | fcc0a3311199b218163371a5c200630c690f7161 | |
| parent | bba95412064207ea3a0ea1776daec6480e5f8b0f (diff) | |
rust: fs: update ARef and AlwaysRefCounted imports from sync::aref
Update call sites in the fs subsystem to import `ARef` and
`AlwaysRefCounted` from `sync::aref` instead of `types`.
This aligns with the ongoing effort to move `ARef` and
`AlwaysRefCounted` to sync.
Suggested-by: Benno Lossin <lossin@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1173
Acked-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Shankari Anand <shankari.ak0208@gmail.com>
Link: https://lore.kernel.org/20250814100101.304408-1-shankari.ak0208@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
| -rw-r--r-- | rust/kernel/fs/file.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/kernel/fs/file.rs b/rust/kernel/fs/file.rs index 35fd5db35c46..18cf579d3312 100644 --- a/rust/kernel/fs/file.rs +++ b/rust/kernel/fs/file.rs @@ -11,7 +11,8 @@ use crate::{ bindings, cred::Credential, error::{code::*, Error, Result}, - types::{ARef, AlwaysRefCounted, NotThreadSafe, Opaque}, + sync::aref::{ARef, AlwaysRefCounted}, + types::{NotThreadSafe, Opaque}, }; use core::ptr; |