]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
rust: fs: update ARef and AlwaysRefCounted imports from sync::aref
authorShankari Anand <shankari.ak0208@gmail.com>
Thu, 14 Aug 2025 10:01:01 +0000 (15:31 +0530)
committerChristian Brauner <brauner@kernel.org>
Tue, 19 Aug 2025 11:25:04 +0000 (13:25 +0200)
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>
rust/kernel/fs/file.rs

index 35fd5db35c465279acb3b88dc3c90c8f95d29cf4..18cf579d3312fa62fc2b59180c4c301320506cf7 100644 (file)
@@ -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;