rust: sync: update `Arc` and `UniqueArc` to take allocation flags
authorWedson Almeida Filho <walmeida@microsoft.com>
Thu, 28 Mar 2024 01:36:01 +0000 (22:36 -0300)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 16 Apr 2024 20:50:04 +0000 (22:50 +0200)
commitcc41670e06383c08f3afdd7a19b782d03ae4d63a
tree9cb8cd5d7995d2a374981ad5d74ecfffe17b6b2e
parent5ab560ce12ed0df3450968cfe4211e398ff2a8d7
rust: sync: update `Arc` and `UniqueArc` to take allocation flags

We also remove the `try_` prefix to align with how `Box` and `Vec` are
providing methods now.

`init` is temporarily updated with uses of GFP_KERNEL. These will be
updated in a subsequent patch to take flags as well.

Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20240328013603.206764-9-wedsonaf@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/init.rs
rust/kernel/sync/arc.rs
samples/rust/rust_print.rs