History

fs: remove ksys_getdents64

Just open code it in the only caller.

Christoph Hellwig committed 6 years ago

Commit fb2da161 parent 8f740632 files · +2 −11Browse files

Unified · Split

2 files
  1. fs/readdir.c +2 −9
  2. include/linux/syscalls.h +0 −2
fs/readdir.c+2−9
@@ -348,8 +348,8 @@ efault: · 347 unmodified lines
348 return -EFAULT;348 return -EFAULT;
349}349}
350 350
351int ksys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent,351SYSCALL_DEFINE3(getdents64, unsigned int, fd,
352 unsigned int count)352 struct linux_dirent64 __user *, dirent, unsigned int, count)
353{353{
354 struct fd f;354 struct fd f;
355 struct getdents_callback64 buf = {355 struct getdents_callback64 buf = {
@@ -380,13 +380,6 @@ int ksys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent, · 24 unmodified lines
380 return error;380 return error;
381}381}
382 382
383
384SYSCALL_DEFINE3(getdents64, unsigned int, fd,
385 struct linux_dirent64 __user *, dirent, unsigned int, count)
386{
387 return ksys_getdents64(fd, dirent, count);
388}
389
390#ifdef CONFIG_COMPAT383#ifdef CONFIG_COMPAT
391struct compat_old_linux_dirent {384struct compat_old_linux_dirent {
392 compat_ulong_t d_ino;385 compat_ulong_t d_ino;
include/linux/syscalls.h+0−2
@@ -1243,8 +1243,6 @@ ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count); · 1242 unmodified lines
1243int ksys_chdir(const char __user *filename);1243int ksys_chdir(const char __user *filename);
1244int ksys_fchmod(unsigned int fd, umode_t mode);1244int ksys_fchmod(unsigned int fd, umode_t mode);
1245int ksys_fchown(unsigned int fd, uid_t user, gid_t group);1245int ksys_fchown(unsigned int fd, uid_t user, gid_t group);
1246int ksys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent,
1247 unsigned int count);
1248int ksys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);1246int ksys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
1249ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count);1247ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count);
1250void ksys_sync(void);1248void ksys_sync(void);