diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-12-14 21:26:33 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-01-21 01:03:54 +0100 |
commit | 3934e36f6099e6277db33f433fe135c6644e8ac2 (patch) | |
tree | e7d960bb93570199886b0fa60a19446dc7e67342 /fs/internal.h | |
parent | io_uring: avoid ring quiesce for fixed file set unregister and update (diff) | |
download | linux-3934e36f6099e6277db33f433fe135c6644e8ac2.tar.xz linux-3934e36f6099e6277db33f433fe135c6644e8ac2.zip |
fs: make two stat prep helpers available
To implement an async stat, we need to provide the flags mapping and
the statx user copy. Make them available internally, through
fs/internal.h.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/internal.h')
-rw-r--r-- | fs/internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/internal.h b/fs/internal.h index c4baf42f8d8a..54e2835c0eba 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -190,3 +190,9 @@ extern int do_vfs_ioctl(struct file *file, unsigned int fd, unsigned int cmd, /* direct-io.c: */ int sb_init_dio_done_wq(struct super_block *sb); + +/* + * fs/stat.c: + */ +unsigned vfs_stat_set_lookup_flags(unsigned *lookup_flags, int flags); +int cp_statx(const struct kstat *stat, struct statx __user *buffer); |