mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] remove duplicated sys_open32() code from 64bit archs
64 bit architectures all implement their own compatibility sys_open(), when in fact the difference is simply not forcing the O_LARGEFILE flag. So use the a common function instead. Signed-off-by: Miklos Szeredi <[email protected]> Cc: <[email protected]> Cc: Christoph Hellwig <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ab8d11beb4
commit
e922efc342
10 changed files with 26 additions and 122 deletions
10
fs/compat.c
10
fs/compat.c
|
|
@ -1274,6 +1274,16 @@ out:
|
|||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
* Exactly like fs/open.c:sys_open(), except that it doesn't set the
|
||||
* O_LARGEFILE flag.
|
||||
*/
|
||||
asmlinkage long
|
||||
compat_sys_open(const char __user *filename, int flags, int mode)
|
||||
{
|
||||
return do_sys_open(filename, flags, mode);
|
||||
}
|
||||
|
||||
/*
|
||||
* compat_count() counts the number of arguments/envelopes. It is basically
|
||||
* a copy of count() from fs/exec.c, except that it works with 32 bit argv
|
||||
|
|
|
|||
Loading…
Reference in a new issue