diff options
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/vfs.h> | 21 | #include <linux/vfs.h> |
22 | #include <asm/uaccess.h> | 22 | #include <asm/uaccess.h> |
23 | #include <linux/fs.h> | 23 | #include <linux/fs.h> |
24 | #include <linux/personality.h> | ||
24 | #include <linux/pagemap.h> | 25 | #include <linux/pagemap.h> |
25 | #include <linux/syscalls.h> | 26 | #include <linux/syscalls.h> |
26 | 27 | ||
@@ -935,9 +936,9 @@ asmlinkage long sys_open(const char __user * filename, int flags, int mode) | |||
935 | char * tmp; | 936 | char * tmp; |
936 | int fd, error; | 937 | int fd, error; |
937 | 938 | ||
938 | #if BITS_PER_LONG != 32 | 939 | if (force_o_largefile()) |
939 | flags |= O_LARGEFILE; | 940 | flags |= O_LARGEFILE; |
940 | #endif | 941 | |
941 | tmp = getname(filename); | 942 | tmp = getname(filename); |
942 | fd = PTR_ERR(tmp); | 943 | fd = PTR_ERR(tmp); |
943 | if (!IS_ERR(tmp)) { | 944 | if (!IS_ERR(tmp)) { |