Skip to content

Commit 6f88cc1

Browse files
Bijan Mottahedehaxboe
authored andcommitted
statx: hide interfaces no longer used by io_uring
The io_uring interfaces have been replaced by do_statx() and are no longer needed. Signed-off-by: Bijan Mottahedeh <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent e62753e commit 6f88cc1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

fs/internal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,5 @@ int sb_init_dio_done_wq(struct super_block *sb);
186186
/*
187187
* fs/stat.c:
188188
*/
189-
unsigned vfs_stat_set_lookup_flags(unsigned *lookup_flags, int flags);
190-
int cp_statx(const struct kstat *stat, struct statx __user *buffer);
191189
int do_statx(int dfd, const char __user *filename, unsigned flags,
192190
unsigned int mask, struct statx __user *buffer);

fs/stat.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ int vfs_statx_fd(unsigned int fd, struct kstat *stat,
152152
}
153153
EXPORT_SYMBOL(vfs_statx_fd);
154154

155-
inline unsigned vfs_stat_set_lookup_flags(unsigned *lookup_flags, int flags)
155+
static inline unsigned vfs_stat_set_lookup_flags(unsigned *lookup_flags,
156+
int flags)
156157
{
157158
if ((flags & ~(AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT |
158159
AT_EMPTY_PATH | KSTAT_QUERY_FLAGS)) != 0)
@@ -533,7 +534,7 @@ SYSCALL_DEFINE4(fstatat64, int, dfd, const char __user *, filename,
533534
}
534535
#endif /* __ARCH_WANT_STAT64 || __ARCH_WANT_COMPAT_STAT64 */
535536

536-
noinline_for_stack int
537+
static noinline_for_stack int
537538
cp_statx(const struct kstat *stat, struct statx __user *buffer)
538539
{
539540
struct statx tmp;

0 commit comments

Comments
 (0)