Re: [PATCH 2/2] eventfd: simplify eventfd_signal_mask()

From: Petr Machata
Date: Thu Jul 13 2023 - 08:05:46 EST



Christian Brauner <brauner@xxxxxxxxxx> writes:

> @@ -82,9 +83,9 @@ __u64 eventfd_signal_mask(struct eventfd_ctx *ctx, __u64 n, __poll_t mask)
> *
> * Returns the amount by which the counter was incremented.

This should be reworded to reflect the fact that the function now
returns a bool.

> */
> -__u64 eventfd_signal(struct eventfd_ctx *ctx)
> +bool eventfd_signal(struct eventfd_ctx *ctx)
> {
> - return eventfd_signal_mask(ctx, 1, 0);
> + return eventfd_signal_mask(ctx, 0);
> }
> EXPORT_SYMBOL_GPL(eventfd_signal);
>