Commit d629752f authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] sparse alpha: utimes()

	... and that's where I'd found do_utimes() crap before I went
grepping ;-)
parent 720cc7e3
...@@ -948,14 +948,7 @@ osf_setitimer(int which, struct itimerval32 __user *in, struct itimerval32 __use ...@@ -948,14 +948,7 @@ osf_setitimer(int which, struct itimerval32 __user *in, struct itimerval32 __use
asmlinkage int asmlinkage int
osf_utimes(char __user *filename, struct timeval32 __user *tvs) osf_utimes(char __user *filename, struct timeval32 __user *tvs)
{ {
char *kfilename;
struct timeval ktvs[2]; struct timeval ktvs[2];
mm_segment_t old_fs;
int ret;
kfilename = getname(filename);
if (IS_ERR(kfilename))
return PTR_ERR(kfilename);
if (tvs) { if (tvs) {
if (get_tv32(&ktvs[0], &tvs[0]) || if (get_tv32(&ktvs[0], &tvs[0]) ||
...@@ -963,14 +956,7 @@ osf_utimes(char __user *filename, struct timeval32 __user *tvs) ...@@ -963,14 +956,7 @@ osf_utimes(char __user *filename, struct timeval32 __user *tvs)
return -EFAULT; return -EFAULT;
} }
old_fs = get_fs(); return do_utimes(filename, tvs ? ktvs : 0);
set_fs(KERNEL_DS);
ret = sys_utimes(kfilename, tvs ? ktvs : 0);
set_fs(old_fs);
putname(kfilename);
return ret;
} }
#define MAX_SELECT_SECONDS \ #define MAX_SELECT_SECONDS \
......
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