Re: [PATCH 01/12] locking/atomic: Introduce inc/dec calls for FETCH-OP flavors

From: Peter Zijlstra
Date: Tue Jun 21 2016 - 03:28:54 EST


On Mon, Jun 20, 2016 at 01:05:53PM -0700, Davidlohr Bueso wrote:
> +#ifndef atomic_fetch_inc
> +#define atomic_fetch_inc(v) (atomic_fetch_add(1, v))
> +#endif

> +#ifndef atomic_fetch_dec
> +#define atomic_fetch_dec(v) (atomic_fetch_sub(1, v))
> +#endif

You're missing these for atomic64