Commit 69c4ba40 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] remove unused flags arg from fs/stat64*

From: "Randy.Dunlap" <rddunlap@osdl.org>
From: Michael Still <mikal@stillhq.com>

Viro and Andi Kleen agreed.  The <flags> argument isn't used at all and
cannot be used safely in the future.

remove third arg <long flags> from all 3 fs/stat.c stat64() calls since
it's not used and there's no way to use it safely;
parent d8644b32
...@@ -320,7 +320,7 @@ static long cp_new_stat64(struct kstat *stat, struct stat64 __user *statbuf) ...@@ -320,7 +320,7 @@ static long cp_new_stat64(struct kstat *stat, struct stat64 __user *statbuf)
return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0;
} }
asmlinkage long sys_stat64(char __user * filename, struct stat64 __user * statbuf, long flags) asmlinkage long sys_stat64(char __user * filename, struct stat64 __user * statbuf)
{ {
struct kstat stat; struct kstat stat;
int error = vfs_stat(filename, &stat); int error = vfs_stat(filename, &stat);
...@@ -330,7 +330,7 @@ asmlinkage long sys_stat64(char __user * filename, struct stat64 __user * statbu ...@@ -330,7 +330,7 @@ asmlinkage long sys_stat64(char __user * filename, struct stat64 __user * statbu
return error; return error;
} }
asmlinkage long sys_lstat64(char __user * filename, struct stat64 __user * statbuf, long flags) asmlinkage long sys_lstat64(char __user * filename, struct stat64 __user * statbuf)
{ {
struct kstat stat; struct kstat stat;
int error = vfs_lstat(filename, &stat); int error = vfs_lstat(filename, &stat);
...@@ -340,7 +340,7 @@ asmlinkage long sys_lstat64(char __user * filename, struct stat64 __user * statb ...@@ -340,7 +340,7 @@ asmlinkage long sys_lstat64(char __user * filename, struct stat64 __user * statb
return error; return error;
} }
asmlinkage long sys_fstat64(unsigned long fd, struct stat64 __user * statbuf, long flags) asmlinkage long sys_fstat64(unsigned long fd, struct stat64 __user * statbuf)
{ {
struct kstat stat; struct kstat stat;
int error = vfs_fstat(fd, &stat); int error = vfs_fstat(fd, &stat);
......
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