statx: allow system call to be invoked from io_uring

This is a prepatory patch to allow io_uring to invoke statx directly.

Signed-off-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Bijan Mottahedeh
2020-05-22 21:31:17 -07:00
committed by Jens Axboe
parent 1d9e128803
commit 0018784fc8
2 changed files with 21 additions and 13 deletions

View File

@@ -188,3 +188,5 @@ int sb_init_dio_done_wq(struct super_block *sb);
*/
unsigned vfs_stat_set_lookup_flags(unsigned *lookup_flags, int flags);
int cp_statx(const struct kstat *stat, struct statx __user *buffer);
int do_statx(int dfd, const char __user *filename, unsigned flags,
unsigned int mask, struct statx __user *buffer);