mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 02:26:56 +07:00
io_uring: move io_uring_get_socket() into io_uring.h
Now we have a io_uring kernel header, move this definition out of fs.h and into io_uring.h where it belongs. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
9b82849215
commit
a3ec600540
@ -3514,15 +3514,6 @@ extern int vfs_fadvise(struct file *file, loff_t offset, loff_t len,
|
|||||||
extern int generic_fadvise(struct file *file, loff_t offset, loff_t len,
|
extern int generic_fadvise(struct file *file, loff_t offset, loff_t len,
|
||||||
int advice);
|
int advice);
|
||||||
|
|
||||||
#if defined(CONFIG_IO_URING)
|
|
||||||
extern struct sock *io_uring_get_socket(struct file *file);
|
|
||||||
#else
|
|
||||||
static inline struct sock *io_uring_get_socket(struct file *file)
|
|
||||||
{
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int vfs_ioc_setflags_prepare(struct inode *inode, unsigned int oldflags,
|
int vfs_ioc_setflags_prepare(struct inode *inode, unsigned int oldflags,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ struct io_uring_task {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#if defined(CONFIG_IO_URING)
|
#if defined(CONFIG_IO_URING)
|
||||||
|
struct sock *io_uring_get_socket(struct file *file);
|
||||||
void __io_uring_task_cancel(void);
|
void __io_uring_task_cancel(void);
|
||||||
void __io_uring_files_cancel(struct files_struct *files);
|
void __io_uring_files_cancel(struct files_struct *files);
|
||||||
void __io_uring_free(struct task_struct *tsk);
|
void __io_uring_free(struct task_struct *tsk);
|
||||||
@ -39,6 +40,10 @@ static inline void io_uring_free(struct task_struct *tsk)
|
|||||||
__io_uring_free(tsk);
|
__io_uring_free(tsk);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
static inline struct sock *io_uring_get_socket(struct file *file)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
static inline void io_uring_task_cancel(void)
|
static inline void io_uring_task_cancel(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
#include <net/af_unix.h>
|
#include <net/af_unix.h>
|
||||||
#include <net/scm.h>
|
#include <net/scm.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
|
#include <linux/io_uring.h>
|
||||||
|
|
||||||
#include "scm.h"
|
#include "scm.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user