]> git.hungrycats.org Git - linux/commitdiff
[PATCH] remove unused flags arg from fs/stat64*
authorAndrew Morton <akpm@osdl.org>
Tue, 20 Jan 2004 11:15:53 +0000 (03:15 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 20 Jan 2004 11:15:53 +0000 (03:15 -0800)
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;

fs/stat.c

index 8549e1d6ea42190c0e3d5cf24f7112baf178b6a2..6969df7525488536629ed8b91dc4fc88fca87d7f 100644 (file)
--- a/fs/stat.c
+++ b/fs/stat.c
@@ -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;
 }
 
-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;
        int error = vfs_stat(filename, &stat);
@@ -330,7 +330,7 @@ asmlinkage long sys_stat64(char __user * filename, struct stat64 __user * statbu
 
        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;
        int error = vfs_lstat(filename, &stat);
@@ -340,7 +340,7 @@ asmlinkage long sys_lstat64(char __user * filename, struct stat64 __user * statb
 
        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;
        int error = vfs_fstat(fd, &stat);