mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 10:55:15 +07:00
c00d2c7e89
... and fix the minor buglet in compat io_submit() - native one kills ioctx as cleanup when put_user() fails. Get rid of bogus compat_... in !CONFIG_AIO case, while we are at it - they should simply fail with ENOSYS, same as for native counterparts. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
29 lines
634 B
C
29 lines
634 B
C
#ifndef __LINUX__AIO_H
|
|
#define __LINUX__AIO_H
|
|
|
|
#include <linux/aio_abi.h>
|
|
|
|
struct kioctx;
|
|
struct kiocb;
|
|
struct mm_struct;
|
|
|
|
#define KIOCB_KEY 0
|
|
|
|
typedef int (kiocb_cancel_fn)(struct kiocb *);
|
|
|
|
/* prototypes */
|
|
#ifdef CONFIG_AIO
|
|
extern void exit_aio(struct mm_struct *mm);
|
|
void kiocb_set_cancel_fn(struct kiocb *req, kiocb_cancel_fn *cancel);
|
|
#else
|
|
static inline void exit_aio(struct mm_struct *mm) { }
|
|
static inline void kiocb_set_cancel_fn(struct kiocb *req,
|
|
kiocb_cancel_fn *cancel) { }
|
|
#endif /* CONFIG_AIO */
|
|
|
|
/* for sysctl: */
|
|
extern unsigned long aio_nr;
|
|
extern unsigned long aio_max_nr;
|
|
|
|
#endif /* __LINUX__AIO_H */
|