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
348348 return -EFAULT;
349349 }
350350
351−int ksys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent,
352− unsigned int count)
351+SYSCALL_DEFINE3(getdents64, unsigned int, fd,
352+ struct linux_dirent64 __user *, dirent, unsigned int, count)
353353 {
354354 struct fd f;
355355 struct getdents_callback64 buf = {
@@ -380,13 +380,6 @@ int ksys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent, · 24 unmodified lines
380380 return error;
381381 }
382382
383−
384−SYSCALL_DEFINE3(getdents64, unsigned int, fd,
385− struct linux_dirent64 __user *, dirent, unsigned int, count)
386−{
387− return ksys_getdents64(fd, dirent, count);
388−}
389−
390383 #ifdef CONFIG_COMPAT
391384 struct compat_old_linux_dirent {
392385 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
12431243 int ksys_chdir(const char __user *filename);
12441244 int ksys_fchmod(unsigned int fd, umode_t mode);
12451245 int ksys_fchown(unsigned int fd, uid_t user, gid_t group);
1246−int ksys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent,
1247− unsigned int count);
12481246 int ksys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
12491247 ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count);
12501248 void ksys_sync(void);