linux/io_uring/refs.h

#ifndef IOU_REQ_REF_H
#define IOU_REQ_REF_H

#include <linux/atomic.h>
#include <linux/io_uring_types.h>

/*
 * Shamelessly stolen from the mm implementation of page reference checking,
 * see commit f958d7b528b1 for details.
 */
#define req_ref_zero_or_close_to_overflow(req)

static inline bool req_ref_inc_not_zero(struct io_kiocb *req)
{}

static inline bool req_ref_put_and_test(struct io_kiocb *req)
{}

static inline void req_ref_get(struct io_kiocb *req)
{}

static inline void req_ref_put(struct io_kiocb *req)
{}

static inline void __io_req_set_refcount(struct io_kiocb *req, int nr)
{}

static inline void io_req_set_refcount(struct io_kiocb *req)
{}
#endif