Re: [PATCH 2/3] rust: revocable: indicate whether `data` has been revoked already
From: Benno Lossin
Date: Thu Jun 12 2025 - 03:59:50 EST
On Tue Jun 3, 2025 at 10:48 PM CEST, Danilo Krummrich wrote:
> Return a boolean from Revocable::revoke() and Revocable::revoke_nosync()
> to indicate whether the data has been revoked already.
>
> Return true if the data hasn't been revoked yet (i.e. this call revoked
> the data), false otherwise.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
Reviewed-by: Benno Lossin <lossin@xxxxxxxxxx>
---
Cheers,
Benno
> ---
> rust/kernel/revocable.rs | 18 ++++++++++++++----
> 1 file changed, 14 insertions(+), 4 deletions(-)