|
@@ -335,7 +335,7 @@ static int put_compat_statfs64(struct compat_statfs64 __user *ubuf, struct kstat
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-COMPAT_SYSCALL_DEFINE3(statfs64, const char __user *, pathname, compat_size_t, sz, struct compat_statfs64 __user *, buf)
|
|
|
+int kcompat_sys_statfs64(const char __user * pathname, compat_size_t sz, struct compat_statfs64 __user * buf)
|
|
|
{
|
|
|
struct kstatfs tmp;
|
|
|
int error;
|
|
@@ -349,7 +349,12 @@ COMPAT_SYSCALL_DEFINE3(statfs64, const char __user *, pathname, compat_size_t, s
|
|
|
return error;
|
|
|
}
|
|
|
|
|
|
-COMPAT_SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, compat_size_t, sz, struct compat_statfs64 __user *, buf)
|
|
|
+COMPAT_SYSCALL_DEFINE3(statfs64, const char __user *, pathname, compat_size_t, sz, struct compat_statfs64 __user *, buf)
|
|
|
+{
|
|
|
+ return kcompat_sys_statfs64(pathname, sz, buf);
|
|
|
+}
|
|
|
+
|
|
|
+int kcompat_sys_fstatfs64(unsigned int fd, compat_size_t sz, struct compat_statfs64 __user * buf)
|
|
|
{
|
|
|
struct kstatfs tmp;
|
|
|
int error;
|
|
@@ -363,6 +368,11 @@ COMPAT_SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, compat_size_t, sz, struct co
|
|
|
return error;
|
|
|
}
|
|
|
|
|
|
+COMPAT_SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, compat_size_t, sz, struct compat_statfs64 __user *, buf)
|
|
|
+{
|
|
|
+ return kcompat_sys_fstatfs64(fd, sz, buf);
|
|
|
+}
|
|
|
+
|
|
|
/*
|
|
|
* This is a copy of sys_ustat, just dealing with a structure layout.
|
|
|
* Given how simple this syscall is that apporach is more maintainable
|