Commit fb2da16c authored by Christoph Hellwig's avatar Christoph Hellwig

fs: remove ksys_getdents64

Just open code it in the only caller.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8f740636
...@@ -348,8 +348,8 @@ static int filldir64(struct dir_context *ctx, const char *name, int namlen, ...@@ -348,8 +348,8 @@ static int filldir64(struct dir_context *ctx, const char *name, int namlen,
return -EFAULT; return -EFAULT;
} }
int ksys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent, SYSCALL_DEFINE3(getdents64, unsigned int, fd,
unsigned int count) struct linux_dirent64 __user *, dirent, unsigned int, count)
{ {
struct fd f; struct fd f;
struct getdents_callback64 buf = { struct getdents_callback64 buf = {
...@@ -380,13 +380,6 @@ int ksys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent, ...@@ -380,13 +380,6 @@ int ksys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent,
return error; return error;
} }
SYSCALL_DEFINE3(getdents64, unsigned int, fd,
struct linux_dirent64 __user *, dirent, unsigned int, count)
{
return ksys_getdents64(fd, dirent, count);
}
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
struct compat_old_linux_dirent { struct compat_old_linux_dirent {
compat_ulong_t d_ino; compat_ulong_t d_ino;
......
...@@ -1243,8 +1243,6 @@ ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count); ...@@ -1243,8 +1243,6 @@ ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count);
int ksys_chdir(const char __user *filename); int ksys_chdir(const char __user *filename);
int ksys_fchmod(unsigned int fd, umode_t mode); int ksys_fchmod(unsigned int fd, umode_t mode);
int ksys_fchown(unsigned int fd, uid_t user, gid_t group); int ksys_fchown(unsigned int fd, uid_t user, gid_t group);
int ksys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent,
unsigned int count);
int ksys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg); int ksys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count); ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count);
void ksys_sync(void); void ksys_sync(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment